import { Icon } from "../../../atoms/icon/Icon.js"; import { useI18n } from "../../../hooks/useI18n.js"; import { FormOptions } from "../../../interfaces/FormOptions.js"; import type { Card } from "../../../molecules/card/Card.js"; import { getComponent } from "../../../registries/components.js"; export interface FormExportProps { i18n?: FormOptions["i18n"]; onClick?: (action: "export:form" | "export:submissions", format: "json" | "csv") => void; } export function FormExport({ onClick, ...props }: FormExportProps) { const FCard = getComponent("Card"); const { t } = useI18n(props?.i18n); return (
{t(`Export schema`)} ) as any } >

{t("Export the formIO schema:")}

{t(`Export submissions`)} ) as any } >

{t("Export all submission as JSON or CSV:")}

); }