import { useCallback, useContext } from 'react'; import { ApiOptionsContext } from './ApiItem'; export default function ApiOptionsLayout({ className }: { className: string }) { const { hideInherited, setHideInherited } = useContext(ApiOptionsContext); const handleHideInherited = useCallback(() => { setHideInherited(!hideInherited); }, [hideInherited, setHideInherited]); return ( <>
Page Options
); }