/**
 * Copyright (c) 2023-present Plane Software, Inc. and contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 * See the LICENSE file for details.
 */

import { EModalPosition, EModalWidth, ModalCore } from "@plane/ui";
import { ExternalContoursCreateRoot } from "./create-root";

type Props = {
  workspaceSlug: string;
  projectId: string;
  modalState: boolean;
  handleModalClose: () => void;
};

export function ExternalContourCreateModalRoot(props: Props) {
  const { workspaceSlug, projectId, modalState, handleModalClose } = props;

  return (
    <ModalCore
      isOpen={modalState}
      position={EModalPosition.CENTER}
      width={EModalWidth.XXXXL}
      className="transition-[width] ease-linear"
    >
      <ExternalContoursCreateRoot workspaceSlug={workspaceSlug} projectId={projectId} handleModalClose={handleModalClose} />
    </ModalCore>
  );
}
