"use client"; import React, { useEffect, useRef, useState } from "react"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { cn } from "@/lib/utils"; import { formatNumber } from "../../model/values"; export const FieldRow: React.FC<{ readonly label: React.ReactNode; readonly children: React.ReactNode; readonly badge?: React.ReactNode; /** * Keyframe controls shown before the label. Pass `null` to reserve the * column so rows without controls stay aligned. */ readonly keyframe?: React.ReactNode; readonly className?: string; }> = ({ label, children, badge, keyframe, className }) => (