'use client';
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import l from"../../text/components/Text.js";let SubMegaMenu=({data:s,menu:a,styles:r})=>e(t,{children:a?.map(t=>n("div",{children:[e("span",{className:"gp-cursor-pointer gp-truncate gp-transition-all gp-duration-[200ms]",children:e(l,{styles:r,setting:{htmlTag:"span",text:s?.[t]?.title,excludeFlex:!0}})}),e("div",{className:"gp-mt-3",children:!!s?.[t]?.childrens?.length&&s?.[t]?.childrens?.map(t=>e("div",{className:"gp-cursor-pointer gp-truncate gp-py-1 gp-transition-all gp-duration-[200ms]",children:e(l,{styles:r,setting:{htmlTag:"span",text:s?.[t]?.title,excludeFlex:!0}})},t))})]},t))});export{SubMegaMenu as default};
