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