8 lines
250 B
TypeScript
8 lines
250 B
TypeScript
import config from '../../../config';
|
|
import { IDriveFile } from '../../../models/drive-file';
|
|
|
|
export default (file: IDriveFile) => ({
|
|
type: 'Document',
|
|
mediaType: file.contentType,
|
|
url: file.metadata.url || `${config.drive_url}/${file._id}`
|
|
});
|