import { useState } from "react"; import { iconList } from "@/lib/helpers/iconList"; import { Color } from "@/lib/types/Colors"; import styles from "./TextButton.module.scss"; import { Icon } from "../Icon/Icon"; interface TextButtonProps { iconName: keyof typeof iconList; label: string; color: Color; } export const TextButton = (props: TextButtonProps): JSX.Element => { const [hovered, setHovered] = useState(false); return (
setHovered(true)} onMouseLeave={() => setHovered(false)} > {props.label}
); }; export default TextButton;