 export interface FormData {
  id: number | undefined;
  name: string;
  template: string;
  content:{
    receiver: string;
    subject: string;
    content: string;
    imageUrl: string | null;
    linkUrl: string[];
    textLinkUrl: string[];
    keyword: Array<string | { keyword: string; value: string }>;
    html: string;
  }
  // emails: string;
  // subject: string;
  // message: string;
  // template: string;
  // company?: string;
  // phone?: string;
  // imageUrl?: string | null;
  // linkUrl?: string[];
  // keyWords?: string[] | { keyword: string; value: string }[];
  // textLinkUrl?: string[];
}

export interface EmailFormProps {
  onDataChange: (data: FormData) => void;
  initialData?: FormData;
}

export type ModalType = "none" | "save-list" | "open-list" | "save-template" | "open-template";