import type { PropsWithChildren } from 'react' import { ChevronWideIcon } from 'lib/icons/ChevronWide.js' import { useToggle } from 'lib/ui/use-toggle.js' interface AccordionRowProps extends PropsWithChildren { label: string leftContent?: JSX.Element rightCollapsedContent?: JSX.Element } export function AccordionRow({ label, leftContent, rightCollapsedContent, children, }: AccordionRowProps): JSX.Element { const [isExpanded, toggle] = useToggle() return (