NODEDC_TASKMANAGER/plane-src/apps/web/ce/components/projects/external-contours/create-modal.tsx

31 lines
911 B
TypeScript

/**
* 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="rounded-lg !bg-transparent shadow-none transition-[width] ease-linear"
>
<ExternalContoursCreateRoot workspaceSlug={workspaceSlug} projectId={projectId} handleModalClose={handleModalClose} />
</ModalCore>
);
}