import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import { useTheme } from "@mui/material/styles"; import { useMediaQuery } from "@mui/material"; import type { PaletteKey } from "@/Utils/Theme/v2/theme"; import { BaseBox } from "@/Components/v2/DesignElements"; type GradientBox = React.PropsWithChildren<{ palette?: PaletteKey }>; export const GradientBox: React.FC = ({ children, palette }) => { const theme = useTheme(); const isSmall = useMediaQuery(theme.breakpoints.down("md")); const bg = palette ? `linear-gradient(to bottom right, ${theme.palette[palette].main} 30%, ${theme.palette[palette].lowContrast} 70%)` : `linear-gradient(340deg, ${theme.palette.tertiary.main} 10%, ${theme.palette.primary.main} 45%)`; return ( {children} ); }; type StatBoxProps = React.PropsWithChildren<{ title: string; subtitle: string; palette?: PaletteKey; }>; export const StatBox: React.FC = ({ title, subtitle, palette, children, }) => { const theme = useTheme(); const textColor = palette ? theme.palette[palette].contrastText : "inherit"; return ( {title} {subtitle} {children} ); };