import { useState } from 'react'; import './Chip.scss'; import classNames from 'classnames'; import { ChipsProps } from './types'; import Typography from '../Typography'; const Chip = ({ label = '', fullText = '', variant = 'primary', onClick = () => {}, }: ChipsProps) => { const [isHovered, setIsHovered] = useState(false); const labelText = isHovered && fullText ? fullText : label; const handleOnMouseEnter = () => setIsHovered(true); const handleOnMouseLeave = () => setIsHovered(false); return (
); }; export default Chip;