mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
|
import { useTranslation } from 'react-i18next'
|
||
|
import { useProjectContext } from '../../../shared/context/project-context'
|
||
|
import Icon from '../../../shared/components/icon'
|
||
|
|
||
|
export default function DownloadSource() {
|
||
|
const { t } = useTranslation()
|
||
|
const { _id: projectId } = useProjectContext()
|
||
|
|
||
|
return (
|
||
|
<a
|
||
|
href={`/project/${projectId}/download/zip`}
|
||
|
target="_blank"
|
||
|
rel="noreferrer"
|
||
|
>
|
||
|
<Icon type="file-archive-o" modifier="2x" />
|
||
|
<br />
|
||
|
{t('source')}
|
||
|
</a>
|
||
|
)
|
||
|
}
|