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