import { useState } from 'react'; import { useFetcher } from 'react-router'; import Dialog from '~/components/Dialog'; import Link from '~/components/Link'; import NumberInput from '~/components/NumberInput'; import Select from '~/components/Select'; import Switch from '~/components/Switch'; import type { User } from '~/types'; interface AddAuthKeyProps { users: User[]; } // TODO: Tags export default function AddAuthKey(data: AddAuthKeyProps) { const [reusable, setReusable] = useState(false); const [ephemeral, setEphemeral] = useState(false); return ( Create pre-auth key Generate auth key
Reusable Use this key to authenticate more than one device.
{ setReusable(!reusable); }} />
Ephemeral Devices authenticated with this key will be automatically removed once they go offline.{' '} Learn more
{ setEphemeral(!ephemeral); }} />
); }