mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { Button, IconClock, Typography } 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 py-4 px-6 border rounded border-opacity-20',
|
|
'bg-gray-100 border-gray-600',
|
|
'dark:bg-gray-400 dark:border-gray-300',
|
|
].join(' ')}
|
|
>
|
|
<div className="flex space-x-3">
|
|
<div className="mt-1">
|
|
<IconClock size="large" />
|
|
</div>
|
|
<div className="flex justify-between w-full items-center">
|
|
<div>
|
|
<p>{primaryText}</p>
|
|
<div>
|
|
<p className="text-sm text-scale-1100">{secondaryText}</p>
|
|
</div>
|
|
</div>
|
|
<Link href={`/project/${projectRef}/settings/billing`}>
|
|
<Button type="primary">Upgrade to Pro</Button>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
|
|
export default UpgradeToPro
|