diff --git a/src/components/breadcrumbs.tsx b/src/components/breadcrumbs.tsx new file mode 100644 index 0000000..90c9a4e --- /dev/null +++ b/src/components/breadcrumbs.tsx @@ -0,0 +1,21 @@ +import { isArray } from "lodash"; +import React from "react"; + +type Props = { + divider?: string; + children: React.ReactNode; +} +/* -------------------------------------------------------------------------- */ +/* use: children */ +/* -------------------------------------------------------------------------- */ +export default function Breadcrumbs({divider ,children}: Props) { + return( + <> + {divider} { + + isArray(children) ? children.join(' '+divider+' ') : children + } +  {divider} + + ) +} \ No newline at end of file