import { UniversalOption } from "@/components/common/CustomTextbox";

export type DialogMode = "add" | "edit";

// ─── Mapped shape — extends UniversalOption so CustomTextbox is happy ─────────
export type MappedProject = Partial<{
  uuid: string;
  project_name: string;
  task_name?: string;
  task_url?: string;
  responsibilities: string;
}>;

// ─── API request body ─────────────────────────────────────────────────────────
export interface ProjectBody {
  project_name?: string;
  task_name?: string;
  task_url?: string;
  responsibilities?: string;
}
export interface ProjectType {
  id?: string;
  uuid?: string;
  project_name?: string;
  task_name?: string;
  task_url?: string;
  responsibilities?: string;
}

// ─── RHF form values (matches CustomDialog field shape) ───────────────────────
export type ProjectFormValues = Partial<{
  uuid: string;
  project_name: string;
  task_name?: string;
  task_url?: string;
  task_link?: string; // form uses `task_link` field name
  responsibilities?: string;
}>;
