import { useEffect, useState } from 'react' import { seatsApi, type SeatUsage } from '@/api/seats' interface RowProps { label: string; check: SeatUsage['engineer'] } function SeatRow({ label, check }: RowProps) { const overLimit = check.limit !== null && check.current > check.limit const limitText = check.limit === null ? '∞' : check.limit return (
{label}
{check.current} / {limitText}
{overLimit &&Over limit (grandfathered)
}