diff --git a/src/components/Breadcrumb.astro b/src/components/Breadcrumb.astro new file mode 100644 index 00000000..576feaa3 --- /dev/null +++ b/src/components/Breadcrumb.astro @@ -0,0 +1,61 @@ +--- +import Icon from '@/components/Icon.astro' + +interface BreadcrumbItem { + icon: string + title: string + url: string +} + +interface Props { + items: BreadcrumbItem[] +} + +const { items } = Astro.props +const hasIcon = (item: BreadcrumbItem) => item.icon.length > 0 +--- +
+