import { ChevronRightIcon } from '@heroicons/react/24/solid'; import PageContent from 'components/page/page-content'; import { getMetaobjectsByIds } from 'lib/shopify'; import { Tab, TabGroup, TabList, TabPanel, TabPanels } from './tab-components'; const TabPanelContent = async ({ ids }: { ids: string[] }) => { const content = await getMetaobjectsByIds(ids); return ( {content.map((block) => ( ))} ); }; const Tabs = async ({ tabItemIds }: { tabItemIds: string[] }) => { const tabItems = await getMetaobjectsByIds(tabItemIds); if (!tabItems || tabItems.length === 0) return null; return (
{tabItems.map((item) => ( {item.title} ))} {tabItems.map((item) => ( ))}
); }; export const TabsPlaceholder = () => { return (
); }; export default Tabs;