import { forwardRef, HTMLAttributes } 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 */ export const FormPanel = ({ children, header, footer }: Props) => ( {header && {header}} {children} {footer && {footer}} ) export const FormPanelContainer = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelContainer.displayName = FormPanelContainer.displayName export const FormPanelHeader = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelHeader.displayName = FormPanelHeader.displayName export const FormPanelContent = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelContent.displayName = FormPanelContent.displayName export const FormPanelFooter = forwardRef>( ({ children, ...props }, ref) => (
{children}
) ) FormPanelFooter.displayName = FormPanelFooter.displayName