import React from 'react'; import { Icon } from '../Icon'; import { iconTypes } from '../Icon/collection'; import styles from './Tag.styles'; import { TagProps } from './types'; import colors from '../../styles/colors'; const { TagStyled, SpanStyled } = styles; const Tag: React.FC = ({ active = false, color, fontSize, hasCancel = false, id, onCancelClick, text = 'Tag', theme = 'regular', tone = 'light', width = 'fit-content', ...props }: TagProps) => { return ( {theme === 'status' && active && ( )} {text} {hasCancel && ( )} ); }; export default Tag;