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

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

const ProjectFormActions = ({ loading, isEdit, onCancel }: ProjectFormActionsProps) => {
  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 ProjectFormActions;
