import React, { MouseEventHandler, useEffect, useState } from "react";
type ThemeProps = {
handleClick: MouseEventHandler;
};
export default function Theme({ handleClick }: ThemeProps) {
const [active, setActive] = useState(0);
const onactive = "whitespace-nowrap px-5 text-lime-500 ";
const offactive = "whitespace-nowrap px-5 ";
const clickActive = (a: number) => {
setActive(a);
};
return (
clickActive(1)} className="px-0 md:px-2">
clickActive(2)} className="px-0 md:px-2">
clickActive(3)} className="px-0 md:px-2">
clickActive(4)} className="px-0 md:px-2">
clickActive(5)} className="px-0 md:px-2">
clickActive(6)} className="px-0 md:px-2">
clickActive(7)} className="px-0 md:px-2">
clickActive(8)} className="px-0 md:px-2">
clickActive(9)} className="px-0 md:px-2">
clickActive(10)} className="px-0 md:px-2">
clickActive(11)} className="px-0 md:px-2">
);
}