import { Box, Typography } from '@mui/material' import { styles } from './styles' import type { LegendIconVariable } from '../../stores' export interface LegendIconUIProps { data: LegendIconVariable } /** * Icon legend — a list of icon images with labels (and optional values). * * @experimental This API is new and may change in a future release. */ export function LegendIconUI({ data }: LegendIconUIProps) { const orientation = data.orientation ?? 'vertical' const horizontal = orientation === 'horizontal' return ( {data.items.map((item, index) => ( {item.label} {item.value != null && ( {item.value} )} ))} ) }