about summary refs log tree commit diff
path: root/src/components/ageAssurance/useAgeAssuranceCopy.ts
blob: 045806994e2719d579d1fd757df57e259735aa3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {useMemo} from 'react'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'

export function useAgeAssuranceCopy() {
  const {_} = useLingui()

  return useMemo(() => {
    return {
      notice: _(
        msg`The laws in your location require that you verify your age before accessing certain features on Bluesky like adult content and direct messaging.`,
      ),
      chatsInfoText: _(
        msg`Don't worry! All existing messages and settings are saved and will be available after you've been verified to be 18 or older.`,
      ),
    }
  }, [_])
}