overleaf/services/web/frontend/js/features/editor-navigation-toolbar/components/back-to-projects-button.js
Alf Eaton f065a7a909 Improve the Icon component (#6245)
GitOrigin-RevId: fbb23b32c47edbe5a22badc627318accbd09e82a
2022-01-20 09:03:58 +00:00

17 lines
406 B
JavaScript

import Icon from '../../../shared/components/icon'
import { useTranslation } from 'react-i18next'
function BackToProjectsButton() {
const { t } = useTranslation()
return (
<a className="toolbar-header-back-projects" href="/project">
<Icon
type="level-up"
fw
accessibilityLabel={t('back_to_your_projects')}
/>
</a>
)
}
export default BackToProjectsButton