1 import { type FC } from 'react';
2 import { Link } from 'react-router-dom';
4 import clsx from '@proton/utils/clsx';
6 type Props = { active: boolean; label: string; first?: boolean; to?: string };
8 export const Breadcrumb: FC<Props> = ({ active, label, first = false, to = '#' }) => (
10 {!first && <span className="mx-1">{'>'}</span>}
12 <button className={clsx(active && 'text-semibold', 'color-norm')}> {label}</button>