I have tried this
const dashBoardLinks = [
{ title: "Home", path: "/home", src: "home" },
{ title: "Analytics", path: "/analytics", src: "analytics" },
{ title: "Sales", path: "/sales", src: "sales" },
];
and I want to map the objects in this ul
<ul className="flex flex-col">
{dashBoardLinks.map((menu, index) => (
<a
href={menu.path}
key={index}
className="hover:bg-gray-400 duration-150 py-2 pl-3 flex gap-x-1 items-center">
<img src={menu.src} alt="" />
<span>{`../assets/icons/${menu.title}.png`}</span>
</a>
))}
</ul>
how can I achieve it, thank you in advance