import { AutoFixHigh } from "@mui/icons-material"; import { FormControlLabel, Switch } from "@mui/material"; import { SwitchBaseProps } from "@mui/material/internal/SwitchBase"; import { memo } from "react"; import { Configurations } from "@/components/common"; type SwitchChecked = NonNullable; type OnSwitchChange = NonNullable; type Props = { format: SwitchChecked; onFormatChange: OnSwitchChange; }; const StyledComponent = ({ format, onFormatChange }: Props) => ( , title: "Format number", input: ( } /> ), }, ]} /> ); export const Component = memo(StyledComponent); export default Component;