"use client" import { useState } from "react" export default function ProductionPreChecksSection({ reportId, wallThickness, sectionWeights, station1Weights }: any) { const [wt, setWt] = useState(wallThickness || { time: new Date().toISOString(), top: "", labelPanel: "", base: "", neck: "" }) const [sw, setSw] = useState(sectionWeights || { time: new Date().toISOString(), top: "", labelPanel: "", base: "", neck: "" }) const [s1w, setS1w] = useState(station1Weights || { time: new Date().toISOString(), log: "", topFlash: "", tailFlash: "", handleEye: "" }) const [saving, setSaving] = useState(false) const handleSave = async () => { setSaving(true) await fetch(`/api/reports/${reportId}`, { method: "PATCH", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ wallThickness: wt, sectionWeights: sw, station1Weights: s1w }) }) setSaving(false) } return (