'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),Text=require("../../text/components/Text.js");const SubMegaMenu=({data:e,menu:t,styles:s})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:t?.map(t=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"gp-cursor-pointer gp-truncate gp-transition-all gp-duration-[200ms]",children:jsxRuntime.jsx(Text.default,{styles:s,setting:{htmlTag:"span",text:e?.[t]?.title,excludeFlex:!0}})}),jsxRuntime.jsx("div",{className:"gp-mt-3",children:!!e?.[t]?.childrens?.length&&e?.[t]?.childrens?.map(t=>jsxRuntime.jsx("div",{className:"gp-cursor-pointer gp-truncate gp-py-1 gp-transition-all gp-duration-[200ms]",children:jsxRuntime.jsx(Text.default,{styles:s,setting:{htmlTag:"span",text:e?.[t]?.title,excludeFlex:!0}})},t))})]},t))});exports.default=SubMegaMenu;
