import { Button } from './Button' import { SpanBox, HStack } from './LayoutPrimitives' import { Circle, X } from '@phosphor-icons/react' import { isDarkTheme } from '../../lib/themeUpdater' import { theme } from '../tokens/stitches.config' type EditLabelChipProps = { text: string color: string isSelected?: boolean xAction: () => void } export function EditLabelChip(props: EditLabelChipProps): JSX.Element { const isDark = isDarkTheme() const selectedBorder = isDark ? '#FFEA9F' : '$omnivoreGray' const unSelectedBorder = isDark ? 'transparent' : '#DEDEDE' const xSelectedColor = isDark ? '#FFEA9F' : theme.colors.omnivoreGray.toString() const xUnselectedColor = isDark ? '#6A6968' : '#2A2A2A' return ( {props.text} ) }