9 lines
235 B
TypeScript
9 lines
235 B
TypeScript
import config from '../../../config';
|
|
import { IDriveFile } from '../../../models/drive-file';
|
|
|
|
export default (file: IDriveFile) => ({
|
|
type: 'Image',
|
|
url: `${config.drive_url}/${file._id}`,
|
|
sensitive: file.metadata.isSensitive
|
|
});
|