mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 07:35:22 +08:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { Button, IconClock } from '@supabase/ui'
|
|
import Link from 'next/link'
|
|
import { FC } from 'react'
|
|
|
|
interface Props {
|
|
primaryText: string
|
|
projectRef: string
|
|
secondaryText: string
|
|
}
|
|
|
|
const UpgradeToPro: FC<Props> = ({ primaryText, projectRef, secondaryText }) => (
|
|
<div
|
|
className={[
|
|
'block w-full rounded border border-opacity-20 py-4 px-6',
|
|
'border-gray-600 bg-gray-100',
|
|
'dark:border-gray-300 dark:bg-gray-400',
|
|
].join(' ')}
|
|
>
|
|
<div className="flex space-x-3">
|
|
<div className="mt-1">
|
|
<IconClock size="large" />
|
|
</div>
|
|
<div className="flex w-full items-center justify-between">
|
|
<div className="space-y-1">
|
|
<p className="text-sm">{primaryText}</p>
|
|
<div>
|
|
<p className="text-scale-1100 text-sm">{secondaryText}</p>
|
|
</div>
|
|
</div>
|
|
<Link href={`/project/${projectRef}/settings/billing`}>
|
|
<Button type="primary">Upgrade to Pro</Button>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
|
|
export default UpgradeToPro
|