mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[web] Share modal give feedback link GitOrigin-RevId: 5e83dec6c6b97c172b7600d8ded285db49178a64
26 lines
639 B
TypeScript
26 lines
639 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import OLButton from '@/shared/components/ol/ol-button'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
export default function GiveFeedbackLink() {
|
|
const { t } = useTranslation()
|
|
const isProfessionalGroupPlan = getMeta('ol-user')?.isProfessionalGroupPlan
|
|
|
|
const link = isProfessionalGroupPlan
|
|
? 'https://forms.gle/rz1JDMuNajWG4ZY49'
|
|
: 'https://forms.gle/WLEjzG4Ayp8zFscM9'
|
|
|
|
return (
|
|
<OLButton
|
|
variant="link"
|
|
size="sm"
|
|
href={link}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="fw-bold"
|
|
>
|
|
{t('give_feedback')}
|
|
</OLButton>
|
|
)
|
|
}
|