import React, { useState } from 'react'; import { AlertTriangle, CheckCircle2 } from 'lucide-react';
const checks=['Watertight status','Open edges','Non-manifold edges','Self-intersections','Reversed normals','Floating shells','Tiny disconnected fragments','Very thin areas','Extreme polygon count','Object dimensions','Selected printer fit','Estimated orientation','Flat-base availability','Potential unsupported areas'];
export default function PrintCheck(){const [printer,setPrinter]=useState('');return <div className="mx-auto max-w-5xl"><p className="text-xs uppercase tracking-[.28em] text-purple-300">Preflight analysis</p><h2 className="mt-2 text-3xl font-semibold">3D Print Check</h2><div className="mt-5 grid gap-5 lg:grid-cols-[1fr_330px]"><div className="grid gap-2 sm:grid-cols-2">{checks.map(c=><div key={c} className="flex items-center gap-3 rounded-xl border border-white/10 bg-[#111114] p-4"><span className="h-2 w-2 rounded-full bg-zinc-700"/><span className="text-sm text-zinc-300">{c}</span><span className="ml-auto text-xs text-zinc-600">Not run</span></div>)}</div><aside className="space-y-4"><div className="rounded-2xl border border-white/10 bg-[#111114] p-5"><label className="text-xs uppercase tracking-wider text-zinc-500">Target printer required</label><select value={printer} onChange={e=>setPrinter(e.target.value)} className="mt-3 w-full rounded-xl border border-white/10 bg-black/40 p-3 text-sm"><option value="">Select printer…</option><option>Bambu Lab P1S</option><option>Creality K2 Plus</option><option>Snapmaker U1</option><option>Custom printer profile</option></select><button disabled={!printer} className="mt-3 w-full rounded-xl bg-[#7dff72] py-3 text-sm font-bold text-black disabled:opacity-25">Run Print Check</button></div><div className="rounded-2xl border border-amber-400/20 bg-amber-400/5 p-4 text-sm text-amber-200"><AlertTriangle className="mb-2"/>If the model does not fit, choose scale down, change orientation, controlled splitting in SHiRE Forge, or export unsplit with a warning. ScanForge never silently alters it.</div></aside></div></div>}