import React, { useState, useEffect } from “react”; import { Card } from “@/components/ui/card”;

// Seed data const seedCompany = { name: “Demo Fence Co.”, tax: 0.05, phone: “555-123-4567”, email: “contact@demofence.com” };

const seedTemplates = [ { id: “chain”, label: “Chain‑Link”, material: 15, labor: 12, margin: 0.2 }, { id: “wood”, label: “Wood Privacy”, material: 22, labor: 18, margin: 0.25 }, { id: “vinyl”, label: “Vinyl Fence”, material: 28, labor: 16, margin: 0.3 } ];

// Gate types const GATE_TYPES = [ { id: “manual”, label: “Manual Gate”, width: 4 }, { id: “rv”, label: “RV Gate”, width: 12 }, { id: “pedestrian”, label: “Pedestrian Gate”, width: 3 }, { id: “double”, label: “Double Gate”, width: 8 } ];

// UI Components const Modal = ({ open, onClose, title, children }) => { if (!open) return null; return (

<div className=“bg-white rounded-lg p-4 w-11/12 max-w-sm” onClick={e => e.stopPropagation()} > {title &&

{title}

} {children}