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 Expire({ machine, fetcher, state }: DeleteProperties) { return ( {close => ( <> Expire {machine.givenName} This will disconnect the machine from your Tailnet. In order to reconnect, you will need to re-authenticate from the device.
Cancel Expire
)}
) }