import type { ReactNode } from 'react' import { Box, Tooltip, Typography } from '@mui/material' import { Info } from 'lucide-react' export type CellHighlight = 'best' | 'worst' | 'critical' | 'future' | 'none' interface Props { highlight?: CellHighlight icon?: ReactNode iconTooltip?: string children: ReactNode } const HIGHLIGHT_SX: Record = { best: { bgcolor: '#f0fdf4', borderLeft: '3px solid #1a7a4a' }, worst: { bgcolor: '#fef3c7', borderLeft: '3px solid #d97706' }, critical: { bgcolor: '#fef2f2', borderLeft: '3px solid #c0392b' }, future: { bgcolor: '#faf5ff', borderLeft: '3px solid #7c3aed' }, none: {}, } export function CompareCell({ highlight = 'none', icon, iconTooltip, children }: Props) { return ( {icon && ( iconTooltip ? {icon} : {icon} )} {children} ) } export function MissingDataCell({ reason }: { reason?: string }) { return ( Nicht verfügbar ) }