mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
'use client'
|
|
|
|
import { Check } from 'lucide-react'
|
|
import { useRouter } from '@penx/libs/i18n'
|
|
import { Button } from '@penx/uikit/button'
|
|
import { UseCouponCode } from '../UseCouponCode'
|
|
import { useSubscriptionGuideDialog } from './useSubscriptionGuideDialog'
|
|
|
|
export function SubscriptionGuideDialogContent() {
|
|
const { setIsOpen } = useSubscriptionGuideDialog()
|
|
const { push } = useRouter()
|
|
return (
|
|
<div className="flex flex-col gap-3">
|
|
<div className="space-y-2">
|
|
<BenefitItem text="Cloud Sync" />
|
|
<BenefitItem text="Web App & Desktop App & Mobile App" />
|
|
<BenefitItem text="Unlimited number of posts, pages, databases" />
|
|
<BenefitItem text="One-to-One support in discord" />
|
|
</div>
|
|
|
|
<div className="mt-4">
|
|
<Button
|
|
size="lg"
|
|
className="h-12 px-8 font-bold"
|
|
onClick={() => {
|
|
push('/~/settings/subscription')
|
|
setIsOpen(false)
|
|
}}
|
|
>
|
|
Become a member
|
|
</Button>
|
|
</div>
|
|
|
|
<UseCouponCode></UseCouponCode>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
function BenefitItem({ text }: { text: string }) {
|
|
return (
|
|
<div className="flex items-center gap-3">
|
|
<Check className="text-green-500" />
|
|
<div className="text-foreground/70">{text}</div>
|
|
</div>
|
|
)
|
|
}
|