"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),m=({productDisplays:e})=>{var r;const l=e.length>1,o=e[0],u=o.title,b=(r=o.description)!=null?r:"",n=a.useMemo(()=>e.map(t=>({value:t.title.replace(" ","_").toLocaleLowerCase(),label:t.title})),[e]),d=a.useMemo(()=>n.reduce((t,c)=>{const s=e.find(f=>f.title===c.label),i=s==null?void 0:s.productCards;return i&&(t[c.value]=i),t},{}),[n,e]);return{isTabbed:l,title:u,description:b,tabs:n,slidesByTabs:d}};exports.useProductsData=m;
