import { type FetcherWithComponents } from '@remix-run/react' import { type Dispatch, type SetStateAction } from 'react' import Dialog from '~/components/Dialog' import { type Machine } from '~/types' import { cn } from '~/utils/cn' type DeleteProperties = { readonly machine: Machine; readonly fetcher: FetcherWithComponents; readonly state: [boolean, Dispatch>]; } export default function Delete({ machine, fetcher, state }: DeleteProperties) { return ( {close => ( <> Remove {machine.givenName} This machine will be permanently removed from your network. To re-add it, you will need to reauthenticate to your tailnet from the device.
Cancel Remove
)}
) }