mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
26 lines
697 B
TypeScript
26 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;
|