// import React from 'react'; // import { Link, useLocation } from 'react-router-dom'; // const Breadcrumb = () => { // const location = useLocation(); // const paths = location.pathname.split('/').filter(path => path); // // Only include the last path as active // const lastPath = paths[paths.length - 1]; // return ( // // ); // }; // export default Breadcrumb; // import React from 'react'; // import { useLocation, Link } from 'react-router-dom'; // const Breadcrumb = () => { // const location = useLocation(); // // Split the current path into segments // const pathnames = location.pathname.split('/').filter((x) => x); // return ( //
    //
  1. // // {/* Bootstrap Icon for Home */} // //
  2. // {pathnames.map((value, index) => { // // Create a cumulative path for each breadcrumb link // const to = `/${pathnames.slice(0, index + 1).join('/')}`; // const isLast = index === pathnames.length - 1; // return ( //
  3. // {isLast ? ( // value.charAt(0).toUpperCase() + value.slice(1) // ) : ( // // {value.charAt(0).toUpperCase() + value.slice(1)} // // )} //
  4. // ); // })} //
// ); // }; // export default Breadcrumb;