import { forwardRef, useState } 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'; export const Root = Dialog.Root; export const Trigger = Dialog.Trigger; export const Close = Dialog.Close; type ContentProps = ComponentPropsWithRef & { appName: string; onConfirm: () => void; }; export const Content = forwardRef, ContentProps>(function Content( { className, children, appName, onConfirm, ...other }, forwardedRef, ) { const [inputValue, setInputValue] = useState(''); return ( Are you sure?
Disabling these products will interrupt any live apps that they depend on them. Type{' '} {appName} to confirm this action.
setInputValue(e.currentTarget.value)} />
); });