import { useTranslation } from 'react-i18next' import { useDetachCompileContext as useCompileContext } from '../../../shared/context/detach-compile-context' import Icon from '../../../shared/components/icon' import Tooltip from '../../../shared/components/tooltip' export default function DownloadPDF() { const { t } = useTranslation() const { pdfDownloadUrl, pdfUrl } = useCompileContext() if (pdfUrl) { return (
PDF
) } else { return (

PDF
) } }