import * as React from "react";
import Link from "next/link";
import { useRouter } from "next/router";
// icons
import { MoveLeft } from "lucide-react";
type BreadcrumbsProps = {
children: any;
};
const Breadcrumbs = ({ children }: BreadcrumbsProps) => {
const router = useRouter();
return (
<>
{children}
>
);
};
type BreadcrumbItemProps = {
title: string;
link?: string;
icon?: any;
linkTruncate?: boolean;
unshrinkTitle?: boolean;
};
const BreadcrumbItem: React.FC = ({
title,
link,
icon,
linkTruncate = false,
unshrinkTitle = false,
}) => (
<>
{link ? (
{icon ?? null}
{title}
) : (
)}
>
);
Breadcrumbs.BreadcrumbItem = BreadcrumbItem;
export { Breadcrumbs, BreadcrumbItem };