Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / pass / components / Layout / Breadcrumbs / Breadcrumb.tsx
blob1f9814d5751d4150d8a7d06b14d60b5e37e1633b
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 = '#' }) => (
9     <>
10         {!first && <span className="mx-1">{'>'}</span>}
11         <Link to={to}>
12             <button className={clsx(active && 'text-semibold', 'color-norm')}> {label}</button>
13         </Link>
14     </>