import { StyColorDisplay, StyColorGroup } from "@dreipol/t3-ui"; import { PaletteColor, useTheme } from "@mui/material"; import { PropsWithChildren } from "react"; export type StyColorsProps = PropsWithChildren<{}>; export const StyColors = ({ children }: StyColorsProps) => { const theme = useTheme(); const createGroup = (name: string, color: PaletteColor) => { return <> } return <> { createGroup('primary', theme.palette.primary) } { createGroup('secondary', theme.palette.secondary) } { createGroup('info', theme.palette.info) } { createGroup('success', theme.palette.success) } { createGroup('warning', theme.palette.warning) } { createGroup('error', theme.palette.error) } { children } }