import { useRouter } from 'next/router' import { Button } from './Button' import { SpanBox } from './LayoutPrimitives' type LabelChipProps = { text: string color: string // expected to be a RGB hex color string } export function LabelChip(props: LabelChipProps): JSX.Element { const router = useRouter() const hexToRgb = (hex: string) => { const bigint = parseInt(hex.substring(1), 16) const r = (bigint >> 16) & 255 const g = (bigint >> 8) & 255 const b = bigint & 255 return [r, g, b] } const color = hexToRgb(props.color) return ( ) }