2021-11-15 21:16:06 +00:00
|
|
|
import React from "react";
|
2021-10-15 13:40:42 +00:00
|
|
|
|
2021-11-07 06:41:09 +00:00
|
|
|
import Modal from "components/Modal";
|
2021-10-15 13:40:42 +00:00
|
|
|
import { ITeam } from "interfaces/team";
|
|
|
|
import { IEnrollSecret } from "interfaces/enroll_secret";
|
|
|
|
import PlatformWrapper from "./PlatformWrapper/PlatformWrapper";
|
|
|
|
|
|
|
|
const baseClass = "generate-installer-modal";
|
|
|
|
|
|
|
|
interface IGenerateInstallerModal {
|
|
|
|
onCancel: () => void;
|
|
|
|
selectedTeam: ITeam | { name: string; secrets: IEnrollSecret[] | null };
|
|
|
|
}
|
|
|
|
|
|
|
|
const GenerateInstallerModal = ({
|
|
|
|
onCancel,
|
|
|
|
selectedTeam,
|
|
|
|
}: IGenerateInstallerModal): JSX.Element => {
|
|
|
|
return (
|
|
|
|
<Modal onExit={onCancel} title={"Generate installer"} className={baseClass}>
|
|
|
|
<PlatformWrapper onCancel={onCancel} selectedTeam={selectedTeam} />
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default GenerateInstallerModal;
|