import { Link } from '@tanstack/react-router' import { useParams } from 'common' import { Button } from 'ui' import { Admonition } from 'ui-patterns/Admonition' import { InlineLink } from '@/components/ui/InlineLink' import { DOCS_URL } from '@/lib/constants' /** * Shown on template list and editor pages when a send-email hook is active. * The hook bypasses template rendering entirely — Auth sends event metadata to * the hook, not rendered HTML — so templates are irrelevant while it's enabled. */ export const SendEmailHookActiveAdmonition = () => { const { ref: projectRef } = useParams() return ( A Send Email hook is active. Email data is sent to your hook instead of using these templates.{' '} Learn more } actions={ } /> ) }