2018-04-02 06:15:53 +02:00
|
|
|
import config from '../../../config';
|
2018-06-18 07:28:43 +02:00
|
|
|
import { IDriveFile } from '../../../models/drive-file';
|
2018-04-01 12:18:36 +02:00
|
|
|
|
2018-06-18 07:28:43 +02:00
|
|
|
export default (fileId: IDriveFile['_id']) => ({
|
2018-04-01 12:18:36 +02:00
|
|
|
type: 'Image',
|
2018-06-18 07:28:43 +02:00
|
|
|
url: `${config.drive_url}/${fileId}`
|
2018-04-01 12:18:36 +02:00
|
|
|
});
|