back-to-editor-button.tsx 577 B

123456789101112131415161718192021
  1. import { useTranslation } from 'react-i18next'
  2. import { Button } from 'react-bootstrap'
  3. import MaterialIcon from '@/shared/components/material-icon'
  4. function BackToEditorButton({ onClick }: { onClick: () => void }) {
  5. const { t } = useTranslation()
  6. return (
  7. <Button
  8. bsSize="sm"
  9. bsStyle={null}
  10. onClick={onClick}
  11. className="back-to-editor-btn"
  12. >
  13. <MaterialIcon type="arrow_back" className="toolbar-btn-secondary-icon" />
  14. <p className="toolbar-label">{t('back_to_editor')}</p>
  15. </Button>
  16. )
  17. }
  18. export default BackToEditorButton