import { Button } from "@/components/ui/button"; import { Loader2 } from "lucide-react"; import { MouseEvent } from "react"; import {useLanguage} from "@/contexts/LanguageContext.tsx"; interface ServiceFormActionsProps { isSubmitting: boolean; onCancel: () => void; submitLabel?: string; } export function ServiceFormActions({ isSubmitting, onCancel, submitLabel = "Create Service" }: ServiceFormActionsProps) { const {t} = useLanguage(); const handleCancel = (e: MouseEvent) => { e.preventDefault(); if (!isSubmitting) { onCancel(); } }; return (
); }