import { HTMLAttributes, forwardRef } from 'react' import { cn } from 'ui' interface Props { children: React.ReactNode header?: React.ReactNode footer?: React.ReactNode /** * Fades the panel and clicks are disabled */ disabled?: boolean } /** @deprecated Use Card instead, refer to BasicAuthSettingsForm.tsx for reference */ const FormPanel = ({ children, header, footer }: Props) => ( {header && {header}} {children} {footer && {footer}} ) const FormPanelContainer = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelContainer.displayName = FormPanelContainer.displayName const FormPanelHeader = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelHeader.displayName = FormPanelHeader.displayName const FormPanelContent = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelContent.displayName = FormPanelContent.displayName const FormPanelFooter = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelFooter.displayName = FormPanelFooter.displayName export { FormPanel, FormPanelContainer, FormPanelContent, FormPanelFooter, FormPanelHeader }