"use client";

import { ResponsiveModal } from "@/components/responsive-modal";

import { useEditEpicModal } from "../hooks/use-edit-epic-modal";
import { EditEpicFormWrapper } from "./edit-epic-form-wrapper";

export const EditEpicModal = () => {
  const { epicId, isOpen, close } = useEditEpicModal();

  return (
    <ResponsiveModal open={isOpen} onOpenChange={close}>
      {epicId && (
        <EditEpicFormWrapper
          id={epicId}
          onCancel={close}
        />
      )}
    </ResponsiveModal>
  );
}; 