import React from 'react'; import { StyledBoxContainer, StyledBoxContent, StyledBoxFooter, StyledBoxHeader, StyledBoxTitle, } from './Box.style'; export interface BoxProps { children?: React.ReactNode; width?: string; header?: React.ReactNode; title?: React.ReactNode; footer?: React.ReactNode; variant?: 'primary' | 'danger'; } export const Box = React.forwardRef((props, ref) => { const { children, variant = 'primary', width = '100%', header, title, footer, ...rest } = props; return ( {header && {header}} {title && {title}} {children} {footer && {footer}} ); });