"use client"; import type { ReactNode } from "react"; import { Button, Group } from "@mantine/core"; import { useI18n } from "@homarr/translation/client"; interface ModalFormFooterProps { onCancel: () => void; form?: string; submitLabel?: string; cancelLabel?: string; loading?: boolean; leftSection?: ReactNode; } const ActionButtons = ({ onCancel, submitLabel, cancelLabel, loading, form, }: Pick) => { const t = useI18n("common.action"); return ( <> ); }; export const ModalFormFooter = ({ onCancel, form, submitLabel, cancelLabel, loading, leftSection, }: ModalFormFooterProps) => { const actionButtons = ( ); if (leftSection) { return ( {leftSection} {actionButtons} ); } return {actionButtons}; };