import { fileRepository } from '@/entities/file' import { DeleteFileButton } from '@/features/delete-file' import { UploadFileForm } from '@/features/upload-file' import { db } from '@/shared/api' /** The attachments on one note, with the controls to add and remove them. */ export async function Attachments({ noteId }: { noteId: string }) { const attached = await fileRepository(db()).listByNote(noteId) return (

Attachments

{attached.length === 0 ?

No attachments yet.

: null}
) }