"use client"

import { Users } from "lucide-react"

import { createAccountXmlUpload } from "@/components/xml-apis/account-xml-upload/api/account-xml-upload.api"
import { accountXmlUploadCreateSchema } from "@/components/xml-apis/account-xml-upload/create/schema"
import { createXmlUploadCreateForm } from "@/components/xml-apis/shared/create-xml-upload-form"

const listHref = "/dashboard/xml-apis/account-xml-upload"

export const AccountXmlUploadCreateForm = createXmlUploadCreateForm({
  icon: Users,
  entityLabel: "Account XML Upload",
  title: "Create new account XML upload",
  description: "Select a bank and upload a single account XML file.",
  successMessage: "Account XML upload created",
  listHref,
  schema: accountXmlUploadCreateSchema,
  onCreate: createAccountXmlUpload,
  single: true,
  browseLabel: "Browse XML file",
  fileFieldLabel: "File",
})
