import { type FC } from "react";
import TaskDetailAttachmentForm from "./TaskDetailAttachmentForm";

type Props = {
  onClose: () => void;
  onSubmit: (data: { file?: File; title: string; linkId: string }) => void;
  isSubmitting?: boolean;
};

const TaskDetailAttachmentPopover: FC<Props> = ({ onClose, onSubmit, isSubmitting }) => {
  return <TaskDetailAttachmentForm onClose={onClose} onSubmit={onSubmit} isSubmitting={isSubmitting} />;
};

export default TaskDetailAttachmentPopover;
