import {useCallback} from 'react' import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {isAndroid} from '#/platform/detection' import {useA11y} from '#/state/a11y' import {atoms as a, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {InlineLinkText, Link} from '#/components/Link' import {Badge} from '#/components/PolicyUpdateOverlay/Badge' import {Overlay} from '#/components/PolicyUpdateOverlay/Overlay' import {type PolicyUpdateState} from '#/components/PolicyUpdateOverlay/usePolicyUpdateState' import {Text} from '#/components/Typography' export function Content({state}: {state: PolicyUpdateState}) { const t = useTheme() const {_} = useLingui() const {screenReaderEnabled} = useA11y() const handleClose = useCallback(() => { state.complete() }, [state]) const linkStyle = [a.text_md] const links = { terms: { overridePresentation: false, to: `https://bsky.social/about/support`, label: _(msg`Terms of Service`), }, privacy: { overridePresentation: false, to: `https://bsky.social/about/support`, label: _(msg`Privacy Policy`), }, copyright: { overridePresentation: false, to: `https://bsky.social/about/support`, label: _(msg`Copyright Policy`), }, guidelines: { overridePresentation: false, to: `https://bsky.social/about/support`, label: _(msg`Community Guidelines`), }, blog: { overridePresentation: false, to: `https://bsky.social/about/support`, label: _(msg`Our blog post`), }, } const linkButtonStyles = { overridePresentation: false, color: 'secondary', size: 'small', } as const const label = isAndroid ? _( msg`We’re updating our Terms of Service, Privacy Policy, and Copyright Policy, effective September 12th, 2025. We're also updating our Community Guidelines, and we want your input! These new guidelines will take effect on October 13th, 2025. Learn more about these changes and how to share your thoughts with us by reading our blog post.`, ) : _(msg`We're updating our policies`) return ( {screenReaderEnabled ? ( Hey there 👋 We’re updating our Terms of Service, Privacy Policy, and Copyright Policy, effective September 12th, 2025. We're also updating our Community Guidelines, and we want your input! These new guidelines will take effect on October 13th, 2025. Learn more about these changes and how to share your thoughts with us by reading our blog post. Terms of Service Privacy Policy Copyright Policy Read our blog post ) : ( Hey there 👋 We’re updating our{' '} Terms of Service ,{' '} Privacy Policy , and{' '} Copyright Policy , effective September 12th, 2025. We're also updating our{' '} Community Guidelines , and we want your input! These new guidelines will take effect on October 13th, 2025. Learn more about these changes and how to share your thoughts with us by{' '} reading our blog post. )} By clicking "Continue" you acknowledge that you understand and agree to these updates. ) }