9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
import { IDriveFile } from '../../../models/drive-file';
|
|
import getDriveFileUrl from '../../../misc/get-drive-file-url';
|
|
|
|
export default (file: IDriveFile) => ({
|
|
type: 'Document',
|
|
mediaType: file.contentType,
|
|
url: getDriveFileUrl(file)
|
|
});
|