mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 16:07:10 +00:00
26 lines
770 B
TypeScript
26 lines
770 B
TypeScript
|
|
|
||
|
|
interface BreadcrumbsProps {
|
||
|
|
breadcrumbPath?: string[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function Breadcrumbs({ breadcrumbPath = ['Home'] }: BreadcrumbsProps) {
|
||
|
|
return(
|
||
|
|
<div className="w-full">
|
||
|
|
<div className="breadcrumbs text-sm">
|
||
|
|
<ul className="pl-4 pt-4">
|
||
|
|
{breadcrumbPath.map((item, index) => (
|
||
|
|
<li key={index}>
|
||
|
|
{index < breadcrumbPath.length - 1 ? (
|
||
|
|
<a>{item}</a>
|
||
|
|
) : (
|
||
|
|
item
|
||
|
|
)}
|
||
|
|
</li>
|
||
|
|
))}
|
||
|
|
</ul>
|
||
|
|
<div className="divider"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|