import { useState, type ReactNode } from "react"; import { EmulatedButton } from "./EmulatedButton"; import { SmoothHeight } from "./cards/SmoothHeight"; import classNames from "classnames"; export const Accordion = ({title, children}: {title: ReactNode} & React.PropsWithChildren): ReactNode => { const [isOpened, setIsOpened] = useState(false) return

{title} {!isOpened? : '-'}

{isOpened &&
{children}
}
}