import React from 'react'
import {View} from 'react-native'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useSession} from '#/state/session'
import * as Toast from '#/view/com/util/Toast'
import {atoms as a, tokens, useBreakpoints, useTheme, web} from '#/alf'
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog'
import * as Toggle from '#/components/forms/Toggle'
import {GradientFill} from '#/components/GradientFill'
import {Full as BlueskyPlusLogo} from '#/components/icons/BlueskyPlus'
import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRightIcon} from '#/components/icons/Chevron'
import {InlineLinkText} from '#/components/Link'
import {Text} from '#/components/Typography'
export function SubscriptionsDialog({
control,
}: {
control: Dialog.DialogControlProps
}) {
return (
)
}
function DialogInner() {
const {_} = useLingui()
const {gtMobile} = useBreakpoints()
const {currentAccount} = useSession()
const t = useTheme()
const [plan, setPlan] = React.useState<'monthly' | 'annual'>('monthly')
const onPressSubscribe = async () => {
try {
if (!currentAccount) return
} catch (e: any) {
Toast.show(_(msg`Could not take you to checkout`), 'xmark')
}
}
return (
Early bird discount!Support Bluesky now and get a 25% discount for a year setPlan(values[0] as 'monthly' | 'annual')}
style={[a.w_full, a.gap_md, a.my_xl]}>
{({selected}) => (
Monthly plan$6/month
Billed monthly, cancel anytime. $8/month after 12 months
)}
{({selected}) => (
Annual plan$60/yearBilled annually, renews at $80/year
)}
Terms and Conditions
{' '}
·{' '}
Privacy Policy
{' '}
·{' '}
EULA
)
}
function MarketingBlurb() {
return (
<>
Here's the thing: we don't have any premium features yet because all
our servers are on fire. Support us now so we can put the fires out
and get working on those features!
What you'll get now:
{' '}
· A supporter badge on your profile
{' '}
· A warm fuzzy feeling knowing you helped us outWhat you'll get soon:
{' '}
· Custom profile colors
{' '}
· Longer and higher quality videos
{' '}
· Custom app icons
>
)
}