Files
supabase/apps/studio/components/layouts/ProjectLayout/RestorePaidPlanProjectNotice.tsx
T
5f533247e1 Update docs url to env var (#38772)
* Update Supabase docs URLs to use env variable

Co-authored-by: a <a@alaisteryoung.com>

* Refactor: Use DOCS_URL constant for documentation links

This change centralizes documentation links using a new DOCS_URL constant, improving maintainability and consistency.

Co-authored-by: a <a@alaisteryoung.com>

* Refactor: Use DOCS_URL constant for all documentation links

This change replaces hardcoded documentation URLs with a centralized constant, improving maintainability and consistency.

Co-authored-by: a <a@alaisteryoung.com>

* replace more instances

* ci: Autofix updates from GitHub workflow

* remaining instances

* fix duplicate useRouter

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: alaister <10985857+alaister@users.noreply.github.com>
2025-09-26 10:16:33 +00:00

36 lines
999 B
TypeScript

import { DOCS_URL } from 'lib/constants'
import { ExternalLink } from 'lucide-react'
import {
AlertDescription_Shadcn_,
AlertTitle_Shadcn_,
Alert_Shadcn_,
Button,
WarningIcon,
} from 'ui'
export const RestorePaidPlanProjectNotice = () => {
return (
<Alert_Shadcn_>
<WarningIcon />
<AlertTitle_Shadcn_>
Project will count towards compute usage once restored
</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
For every hour your instance is active, we will bill you based on the compute size of your
project.
</AlertDescription_Shadcn_>
<AlertDescription_Shadcn_ className="mt-3">
<Button asChild type="default" icon={<ExternalLink />}>
<a
href={`${DOCS_URL}/guides/platform/manage-your-usage/compute`}
target="_blank"
rel="noreferrer"
>
More information
</a>
</Button>
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
)
}