import { Box, CircularProgress, circularProgressClasses, CircularProgressProps } from "@mui/material"; import { forwardRef } from "react"; export interface FacebookCircularProgressProps extends CircularProgressProps { bgColor?: string; fgColor?: string; } const FacebookCircularProgress = forwardRef(({ sx, bgColor, fgColor, ...rest }: FacebookCircularProgressProps, ref) => { return ( bgColor ?? theme.palette.grey[theme.palette.mode === "light" ? 200 : 800], }} size={40} thickness={4} {...rest} value={100} /> fgColor ?? theme.palette.primary.main, position: "absolute", left: 0, [`& .${circularProgressClasses.circle}`]: { strokeLinecap: "round", }, }} size={40} thickness={4} {...rest} /> ); }); export default FacebookCircularProgress;