import { useRouter } from '@uirouter/react'; import type { Environment } from '@/portainer/environments/types'; import { confirmAsync } from '@/portainer/services/modal.service/confirm'; import { promptAsync } from '@/portainer/services/modal.service/prompt'; import * as notifications from '@/portainer/services/notifications'; import { activateDevice } from '@/portainer/hostmanagement/open-amt/open-amt.service'; import { deleteEndpoint } from '@/portainer/environments/environment.service'; import { Button } from '@@/buttons'; import { Link } from '@@/Link'; interface Props { selectedItems: Environment[]; isFDOEnabled: boolean; isOpenAMTEnabled: boolean; setLoadingMessage(message: string): void; showWaitingRoomLink: boolean; } export function EdgeDevicesDatatableActions({ selectedItems, isOpenAMTEnabled, isFDOEnabled, setLoadingMessage, showWaitingRoomLink, }: Props) { const router = useRouter(); return (