import React, { type ReactNode } from 'react'; import { classNames } from '../../utils'; import styles from './Panel.module.css'; import { useId } from '../../hooks/useId'; import { PanelProvider } from './PanelProvider'; export type PanelContentProps = { /** * className for the element. */ className?: string; /** * The content of the Panel. */ children: ReactNode; /** * The selector for the aria title of the
*/ 'aria-labelledby'?: string; /** * Whether the panel is coming from the side */ DO_NOT_USE_isSidePanel?: boolean; }; export type SidePanelContentProps = Omit< PanelContentProps, 'DO_NOT_USE_isSidePanel' >; export function PanelContent({ children, className, DO_NOT_USE_isSidePanel = false, 'aria-labelledby': ariaLabelledby, ...rest }: PanelContentProps) { const titleId = useId(); return (
{children}
); } export function SidePanelContent(props: SidePanelContentProps) { return ; }