import { Box, FormControlLabel } from "@mui/material"; import CustomizedSwitch from "@ui_kit/CustomSwitch"; import * as React from "react"; interface Props { text: string; icon: string; onClick?: () => void; } export const SwitchSetting = ({ text, icon, onClick }: Props) => { return ( icon } label={text} labelPlacement="start" sx={{ display: "flex", justifyContent: "space-between", color: "#9A9AAF", width: "100%", paddingRight: "15px", }} onClick={onClick} /> ); };