import type { DsProps } from '@/components/ds/props'; import React from 'react'; import { LineChart } from '@mui/x-charts'; import { cn } from '@/lib/utils'; import { chartSx, TONES, tooltipSx } from './muiChartTheme'; /** * Cumulative hires over time. * * Deliberately does not draw a line through a single point: with one month of * history there is no trend, and a chart that implies one is worse than a * sentence saying there is not. The empty state is the page's own copy, kept * intact and given the same container as the chart so the section holds its * shape either way. * * `points: [{ label, hires, cumulative }]` — supplied by the page. */ /** @param {any} props */ export function HiringTrendChart({ points = [], emptyState, className = '' }: DsProps) { const enough = points.length >= 2; return (