ConusAI vendor 81941888f
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { uploadFile } from '@/features/upload-file/api/actions'
|
||||
|
||||
export function UploadFileForm({ noteId }: { noteId: string }) {
|
||||
return (
|
||||
<form action={uploadFile.bind(null, noteId)}>
|
||||
<label>
|
||||
Attachment
|
||||
<input name="file" type="file" required />
|
||||
</label>
|
||||
<button type="submit">Attach</button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user