task detail attachment form

This commit is contained in:
hamid zarghami
2026-06-17 15:34:47 +03:30
parent 707908fe03
commit 92033fb94c
6 changed files with 130 additions and 4 deletions
@@ -0,0 +1,17 @@
import { type FC } from "react";
import TaskDetailAttachmentForm from "./TaskDetailAttachmentForm";
type Props = {
onClose: () => void;
onSubmit: (data: { file?: File; title: string; linkId: string }) => void;
};
const TaskDetailAttachmentPopover: FC<Props> = ({ onClose, onSubmit }) => {
return (
<div className="absolute top-full right-0 mt-2 z-30 w-[300px] bg-white/90 backdrop-blur-md rounded-2xl p-4 shadow-lg border border-white/80">
<TaskDetailAttachmentForm onClose={onClose} onSubmit={onSubmit} />
</div>
);
};
export default TaskDetailAttachmentPopover;