Files
supabase/apps/studio/components/interfaces/Auth/EmailRateLimitsAlert/EmailRateLimitsAlert.tsx
Danny White 0c65581e6c chore(studio): split auth templates into subpages (#39831)
* basic subpages

* add template descriptions

* keep tabbed navigation alive

* revert active tab

* use bespoke layout for each template

* redirect non-feature preview users away

* template page improvements

* fix docs link

* add TemplateEditor

* fix errors

* better error for missing routes

* extract slugifyTitle function to ensure consistent slugs
2025-10-27 15:52:34 +11:00

31 lines
917 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Link from 'next/link'
import { useParams } from 'common'
import { InlineLink } from 'components/ui/InlineLink'
import { DOCS_URL } from 'lib/constants'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/admonition'
export function EmailRateLimitsAlert() {
const { ref } = useParams()
return (
<Admonition
type="warning"
title="Set up custom SMTP"
className="bg-warning-200 border-warning-400"
>
<p>
You’re using the built-in email service. This service has rate limits and is not meant to be
used for production apps.{' '}
<InlineLink href={`${DOCS_URL}/guides/platform/going-into-prod#auth-rate-limits`}>
Learn more
</InlineLink>{' '}
</p>
<Button asChild type="default" className="mt-2">
<Link href={`/project/${ref}/auth/smtp`}>Set up SMTP</Link>
</Button>
</Admonition>
)
}