import React from 'react'; import { Close } from '../icons'; import { Craftify_ICONS_SIZES } from '../constants'; import { TagContainer, TagLable } from './Tag.styles'; import { TagProps } from './types'; const Tag: React.FC = ({ children, size = 'm', color = 'primary', unremovable, onClose, }) => { const handleClick = (e: React.MouseEvent) => { e.stopPropagation(); onClose?.(e); }; const iconSize = parseInt(Craftify_ICONS_SIZES[size], 10); return ( {children} {!unremovable && ( )} ); }; export default Tag;