import * as React from "react"; import { colors } from "pebble-shared"; import { tagStyle, iconClass } from "./styles/Tag.styles"; import { TagProps } from "./typings/Tag"; import { cx } from "emotion"; import Ink from "react-ink"; const Tag: React.FunctionComponent = ({ label, color, onClose, className }) => { const wrapperClassName = cx(tagStyle, { __pebble__tag__with__close: !!onClose }); const _className = cx(wrapperClassName, className); return (
{label}{" "} {onClose && ( )}
); }; export default Tag;