import clsx from 'clsx' import { useState, ReactNode } from 'react' export function AdvancedPanel(props: { children: ReactNode }) { const { children } = props const [collapsed, setCollapsed] = useState(true) return (
setCollapsed((collapsed) => !collapsed)} className="cursor-pointer" >
Advanced
{children}
) }