{item.children.map((child, index) => (
{
dispatch(setOpenedMenu(null));
}}
href={child.url}
className="block mb-4 text-sm transition-colors w-max lg:w-44 hover:text-secondary"
>
{child.label}
{child.children && (
{child.children.map((grandChild, index) => (
-
{
dispatch(setOpenedMenu(null));
}}
href={grandChild.url}
className="block mb-4 text-sm transition-colors w-max lg:w-44 hover:text-secondary"
>
{grandChild.label}
))}
)}
))}
{item.extra_context.attributes.images && (
{item.extra_context.attributes.images.map(
(image, index) =>
image.kwargs.value.image && (
{/* TODO: There is no image. It should be checked. May need fix. */}
{image.value.title}
{image.value.link_text}
)
)}
)}
)}