interface Props { children: React.ReactNode header?: React.ReactNode footer?: React.ReactNode /** * Fades the panel and clicks are disabled */ disabled?: boolean } const FormPanel = ({ children, header, footer }: Props) => (
{header &&
{header}
}
{children}
{footer && ( <>
{footer} )}
) export { FormPanel }