import { FC, ReactNode, forwardRef } from "react" // @mui material components import { TypographyProps } from "@mui/material" // Custom styles for MDTypography import MDTypographyRoot from "~/components/mui/MDTypography/MDTypographyRoot" // ThreeD Garden contexts import { useMaterialUIController } from "~/context" // Declaring props types for MDTypography interface Props extends TypographyProps { color?: | "inherit" | "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark" | "text" | "white" fontWeight?: "light" | "regular" | "medium" | "bold" | undefined textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" verticalAlign?: | "unset" | "baseline" | "sub" | "super" | "text-top" | "text-bottom" | "middle" | "top" | "bottom" textGradient?: boolean children: ReactNode opacity?: number [key: string]: any } const MDTypography: FC = forwardRef( ( { color, fontWeight, textTransform, verticalAlign, textGradient, opacity, children, ...rest }, ref ) => { const [controller] = useMaterialUIController() const { darkMode } = controller return ( {children} ) } ) // Declaring default props for MDTypography MDTypography.defaultProps = { color: "dark", fontWeight: undefined, textTransform: "none", verticalAlign: "unset", textGradient: false, opacity: 1, } export default MDTypography