// __SDEFILE__ - This file is a dependency for the stand-alone environment import { useState } from 'react' /* * DaisyUI's accordion seems rather unreliable. * So instead, we handle this in React state */ const getProps = (isActive) => ({ className: `p-2 px-4 rounded-lg bg-transparent shadow w-full mt-2 py-4 h-auto content-start text-left bg-opacity-20 ${isActive ? 'hover:bg-transparent' : 'hover:bg-secondary hover:bg-opacity-10'}`, }) const getSubProps = (isActive) => ({ className: ` p-2 px-4 rounded bg-transparent w-full mt-2 py-4 h-auto content-start bg-secondary text-left bg-opacity-20 ${ isActive ? 'bg-opacity-100 hover:bg-transparent shadow' : 'hover:bg-opacity-10 hover:bg-secondary ' }`, }) const components = { button: (props) => , div: (props) =>