import { useState } from "react"; const ChartTab: React.FC = () => { const [selected, setSelected] = useState< "optionOne" | "optionTwo" | "optionThree" >("optionOne"); const getButtonClass = (option: "optionOne" | "optionTwo" | "optionThree") => selected === option ? "shadow-theme-xs text-gray-900 dark:text-white bg-white dark:bg-gray-800" : "text-gray-500 dark:text-gray-400"; return (
); }; export default ChartTab;