import { ArrowLeftIcon, HomeIcon } from "@heroicons/react/24/outline"; import Link from "next/link"; import { useRouter } from "next/router"; type BreadcrumbsProps = { children: any; }; const Breadcrumbs = (props: BreadcrumbsProps) => { const router = useRouter(); return ( <>
router.back()} >

{props.children}
); }; type BreadcrumbItemProps = { title: string; link?: string; icon?: any; }; const BreadcrumbItem = (props: BreadcrumbItemProps) => { return ( <> {props.link ? (

{props?.icon} {props.title}

) : (

{props?.icon} {props.title}

)} ); }; export { Breadcrumbs, BreadcrumbItem };