Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import {useMemo} from 'react'import {useLingui} from '@lingui/react/macro'
export type GlobalLabelStrings = Record< string, { name: string description: string }>
export function useGlobalLabelStrings(): GlobalLabelStrings { const {t: l} = useLingui() return useMemo( () => ({ '!hide': { name: l`Content Blocked`, description: l`This content has been hidden by the moderators.`, }, '!warn': { name: l`Content Warning`, description: l`This content has received a general warning from moderators.`, }, '!no-unauthenticated': { name: l`Sign-in Required`, description: l`This user has requested that their content only be shown to signed-in users.`, }, porn: { name: l`Adult Content`, description: l`Explicit sexual images.`, }, sexual: { name: l`Sexually Suggestive`, description: l`Does not include nudity.`, }, nudity: { name: l`Non-sexual Nudity`, description: l`E.g. artistic nudes.`, }, 'graphic-media': { name: l`Graphic Media`, description: l`Explicit or potentially disturbing media.`, }, gore: { name: l`Graphic Media`, description: l`Explicit or potentially disturbing media.`, }, }), [l], )}