2020-04-01 20:43:50 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import FileDownloadLink from 'component/fileDownloadLink';
|
|
|
|
import Card from 'component/common/card';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
uri: string,
|
|
|
|
renderMode: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function FileRenderDownload(props: Props) {
|
2021-11-28 21:05:10 +01:00
|
|
|
const { uri } = props;
|
2020-04-01 20:43:50 +02:00
|
|
|
|
|
|
|
return <Card title={__('Download')} actions={<FileDownloadLink uri={uri} buttonType="primary" showLabel />} />;
|
|
|
|
}
|