import React from 'react'; import { css } from '@emotion/css'; import { ColorSwatch, Group, Text } from '@mantine/core'; import { getLabelOrUnknown } from './utils'; /** * Generic legend item partially copied from mantine. */ export function LegendItem({ color, label, filtered, onClick }: { color: string; label: string; filtered: boolean; onClick?: () => void }) { return ( {getLabelOrUnknown(label)} ); }