import type {SwitchProps} from "@heroui/react"; import React from "react"; import {useSwitch, VisuallyHidden} from "@heroui/react"; export const MoonIcon = (props) => { return ( ); }; export const SunIcon = (props) => { return ( ); }; const ThemeSwitch = (props: SwitchProps) => { const {Component, slots, isSelected, getBaseProps, getInputProps, getWrapperProps} = useSwitch(props); return (
Lights: {isSelected ? "on" : "off"}