- {console.log(breadCrumbs.length - 1)}
+ {/* {console.log(breadCrumbs)}
+ {console.log(breadCrumbs[breadCrumbs.length - 1])}
+ {console.log(
+ breadCrumb.length ? "text-red-900" : "text-blue-400"
+ )} */}
+
{/* {breadCrumb.active === true ? (
) : (
@@ -43,19 +50,15 @@ BreadCrumb.defaultProps = {
breadCrumbs: [
{
name: "صفحه اصلی",
- active: false,
},
{
name: "آمار و گزارشات",
- active: false,
},
{
name: "فروش محصولات",
- active: false,
},
{
name: "سال 1400",
- active: true,
},
],
};