import * as React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; // icons import { ArrowLeftIcon } from "@heroicons/react/24/outline"; import { Icon } from "components/ui"; type BreadcrumbsProps = { children: any; }; const Breadcrumbs = ({ children }: BreadcrumbsProps) => { const router = useRouter(); return ( <>
{icon ?? null} {title}
) : ({icon} {title}