import { Form, useNavigation } from '@remix-run/react'; import { forwardRef } from 'react'; import { twMerge } from 'tailwind-merge'; import * as Dialog from './Dialog'; import * as ConfirmDialog from './ConfirmDialog'; import { TextInput } from './TextInput'; import type { ElementRef, ComponentPropsWithRef } from 'react'; import { Alert } from './Alert'; export const Root = Dialog.Root; export const Trigger = Dialog.Trigger; export const Close = Dialog.Close; type ContentProps = ComponentPropsWithRef & { keyId: string; appId: string; nameError?: string; generalError?: string; appName: string; }; export const Content = forwardRef, ContentProps>(function Content( { className, children, keyId, appId, nameError, generalError, appName, ...other }, forwardedRef, ) { const navigation = useNavigation(); return ( Are you sure? {generalError && ( {generalError} )}
Rotating your API key will deactivate the current key, and prevent it from making API calls. Type{' '} {appName} to confirm this action.
); });