import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/shared/common/ui/dialog"; import { Button } from "@/shared/common/ui/button"; import { Textarea } from "@/shared/common/ui/textarea"; import type { EmployeePositionChangeRequest } from "@/user-management/services/api/employeePositionChangeRequestService"; import type { UserPositionApprovalDecision } from "./UserPositionApprovalActions"; interface UserPositionApprovalDecisionDialogProps { decision: { type: UserPositionApprovalDecision; item: EmployeePositionChangeRequest; } | null; comment: string; isSubmitting: boolean; onCommentChange: (value: string) => void; onClose: () => void; onSubmit: () => void; } export default function UserPositionApprovalDecisionDialog({ decision, comment, isSubmitting, onCommentChange, onClose, onSubmit, }: UserPositionApprovalDecisionDialogProps) { return ( !open && !isSubmitting && onClose()} > {decision?.type === "approve" ? "Approve" : "Reject"} position change request {decision?.type === "approve" ? "Confirm this employee position change request." : "Confirm that this employee position change request should be rejected."}