import React from "react";
import Button from "../../elements/button";

interface SubmitButtonProps {
  isSubmitting: boolean;
  onSubmit: () => Promise<void>;
}

export default function SubmitButton({
  isSubmitting,
  onSubmit,
}: SubmitButtonProps) {
  return (
    <>
      <div className="mt-12 flex justify-end">
        <Button
          disabled={isSubmitting}
          onClick={onSubmit}
          text="Fertig"
          className="h-10 px-4"
          type="Primary"
        />
      </div>
    </>
  );
}
