import { Box, IconButton, Typography } from "@mui/material"; import { useState } from "react"; type Props = { text: string; icon: any; }; export default function SwichResult({ text, icon }: Props) { const [active, setActive] = useState(false); return ( icon {text} setActive(!active)}> ); }