import { useSignal } from '@preact/signals'; interface CreateShareModalProps { isOpen: boolean; filePath: string; password?: string; onClickSave: (filePath: string, password?: string) => Promise; onClose: () => void; } export default function CreateShareModal( { isOpen, filePath, password, onClickSave, onClose }: CreateShareModalProps, ) { const newPassword = useSignal(password || ''); return ( <>

Create New Public Share Link

{ newPassword.value = event.currentTarget.value; }} autocomplete='off' />
); }