
import React from "react";
import { Button } from "@/components/ui/button";

interface TestimonialFormActionsProps {
  loading: boolean;
  isEdit: boolean;
  onCancel: () => void;
}

const TestimonialFormActions = ({ loading, isEdit, onCancel }: TestimonialFormActionsProps) => {
  return (
    <div className="flex space-x-4">
      <Button type="submit" disabled={loading} className="flex-1">
        {loading ? "Sauvegarde..." : (isEdit ? "Mettre à jour" : "Créer")}
      </Button>
      <Button type="button" variant="outline" onClick={onCancel}>
        Annuler
      </Button>
    </div>
  );
};

export default TestimonialFormActions;
