mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
27 lines
697 B
TypeScript
27 lines
697 B
TypeScript
import React from "react";
|
|
|
|
import Modal from "components/Modal";
|
|
import { ITeam } from "interfaces/team";
|
|
import { IEnrollSecret } from "interfaces/enroll_secret";
|
|
import PlatformWrapper from "./PlatformWrapper/PlatformWrapper";
|
|
|
|
const baseClass = "add-hosts-modal";
|
|
|
|
interface IAddHostsModal {
|
|
onCancel: () => void;
|
|
selectedTeam: ITeam | { name: string; secrets: IEnrollSecret[] | null };
|
|
}
|
|
|
|
const AddHostsModal = ({
|
|
onCancel,
|
|
selectedTeam,
|
|
}: IAddHostsModal): JSX.Element => {
|
|
return (
|
|
<Modal onExit={onCancel} title={"Add hosts"} className={baseClass}>
|
|
<PlatformWrapper onCancel={onCancel} selectedTeam={selectedTeam} />
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default AddHostsModal;
|