"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import Link from "next/link"; import { ArrowLeft } from "lucide-react"; import { createCompany, updateCompany } from "./actions"; import { CompanyBrandingUploader } from "./company-branding-uploader"; export type CompanyFormData = { id: string; name: string; code: string | null; gstNumber: string | null; address: string | null; telephone: string | null; mobile: string | null; email: string | null; invoiceEmail: string | null; invoiceAddress: string | null; logoUrl: string | null; stampUrl: string | null; isActive: boolean; }; const INPUT = "w-full rounded-lg border border-neutral-300 px-3 py-2 text-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20"; const LABEL = "block text-xs font-medium text-neutral-700 mb-1"; function CompanyFormFields({ company }: { company?: CompanyFormData }) { return (
Sister company used for invoicing and purchase orders
{/* ── Branding (independent uploads; available once the company exists) ── */}Logo and stamp shown on exported POs
{isEdit ? (Create the company first — you'll be taken to the edit page where you can upload a logo and stamp.
)}