import * as RadixSwitch from "@radix-ui/react-switch"; import { useContext } from "react"; import List from "../List"; interface SwitchProps { value: boolean; onChange: (v: boolean) => void; } export default function Switch(props: SwitchProps) { const { value, onChange } = props; const { switchClassName = "" } = useContext(List.ListContext); return ( ); }