import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
import { FormData, StepKey } from "../types";

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}



export const RESPONSIBLE_OPTIONS = [
  { value: "nirupam", label: "Nirupam Patra" },
  { value: "poulami", label: "Poulami Kuti" },
  { value: "dev", label: "Developers Team" },
];

export const ROLE_OPTIONS = [
  { value: "pm", label: "Project Manager" },
  { value: "dev", label: "Developer" },
  { value: "design", label: "Designer" },
];

export const DURATION_UNIT_OPTIONS = [
  { value: "minutes", label: "Minutes" },
  { value: "hours", label: "Hours" },
];



export const STEPS = [
  { id: 1, label: "Meeting" },
  { id: 2, label: "Attendees" },
  { id: 3, label: "Agenda" },
  { id: 4, label: "Decisions" },
  { id: 5, label: "Actions" },
  { id: 6, label: "Others" },
];

export const STEP_KEYS: StepKey[] = [
  "meeting",
  "attendees",
  "agenda",
  "decisions",
  "actions",
  "others",
];

export const getInitialFormData = (projectName: string): FormData => ({
  meeting: {
    title: "",
    projectName: projectName,
    place: "",
    date: "",
    time: "",
    duration: "",
    durationUnit: "minutes",
    calledBy: "",
    externalCalledBy: "",
  },
  attendees: { attendees: [] },
  agenda: { agenda: [] },
  decisions: { decisions: [] },
  actions: { actions: [] },
  others: { notes: "" },
});