import { BaseBox } from "."; import Stack from "@mui/material/Stack"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import type { ResponsiveStyleValue } from "@mui/system"; import { useTheme } from "@mui/material/styles"; type BaseChartProps = React.PropsWithChildren<{ icon: React.ReactNode; title: string; width?: number | string; maxWidth?: number | string; padding?: number | string | ResponsiveStyleValue; }>; export const BaseChart = ({ children, icon, title, width = "100%", maxWidth = "100%", padding, }: BaseChartProps) => { const theme = useTheme(); return ( {icon && ( {icon} )} {title} {children} ); };