import { Accordion } from '@fluid-design/fluid-ui'; import { CogIcon, InformationCircleIcon, ShoppingCartIcon, } from '@heroicons/react/24/outline'; import clsxm from '@/lib/clsxm'; const dataSimple = [ { title: 'Shop', details: (

Our shop contains all the tools you need to build a great design system. We have a wide range of tools and resources to help you get started.

), }, { title: 'Service', details: (

We offer a wide range of services to help you get started.

), }, { title: 'About', details: ( <>

We are a small team of designers and developers who create high-quality design systems.

), }, ]; const dataWithIcons = [ Object.assign({}, dataSimple[0], { Icon: ShoppingCartIcon, }), Object.assign({}, dataSimple[1], { Icon: CogIcon, }), Object.assign({}, dataSimple[2], { Icon: InformationCircleIcon, }), ]; const AccordionWrap = ({ className = '', children }) => (
{children}
); const AccordionSimple = ({ className = '' }) => { return ( {dataSimple.map((item, index) => ( {item.details} ))} ); }; const AccordionMultiple = () => { return ( {dataSimple.map((item, index) => ( {item.details} ))} ); }; const AccordionWithIcons = () => { return ( {dataWithIcons.map((item, index) => ( {item.details} ))} ); }; AccordionSimple.displayName = 'AccordionSimple'; AccordionMultiple.displayName = 'AccordionMultiple'; AccordionWithIcons.displayName = 'AccordionWithIcons'; export const AccordionExamples = Object.assign( {}, { Simple: AccordionSimple, WithIcons: AccordionWithIcons, Multiple: AccordionMultiple, } );