usePreview
usePreview(
client,fileId,options?):UsePreviewResult
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:195
The preview of one file (client.preview): { kind, url, renditions, text }. Asks again when fileId or
version changes, and (with refresh) shortly before the signed URLs expire. A null client or file id is inert.
Parameters
Section titled “Parameters”client
Section titled “client”FilesClient | null | undefined
fileId
Section titled “fileId”string | null | undefined
options?
Section titled “options?”UsePreviewOptions = {}