import { Box } from '@mui/material' import { styles } from './style' import type { WidgetSubHeaderProps } from './types' /** * Flexible two-slot layout for displaying supplementary widget information such as totals, timestamps, or controls. Uses flexbox with space-between justification. * * @example * ```tsx * Total: 1,234} * slotRight={Updated: 2m ago} * /> * ``` */ export function WidgetSubHeader({ slotLeft, slotRight, sx, }: WidgetSubHeaderProps) { return ( {slotLeft && ( {slotLeft} )} {slotRight && ( {slotRight} )} ) }