import { notFound } from 'next/navigation'
import { DEFAULT_TEMPLATES } from '@/lib/email-templates'
import { DimensionAlertDemo } from './dimension-alert-demo'

/** A self-contained walkthrough of the Workspace permit dimension alert. */
export default function DimensionAlertDemoPage() {
  if (process.env.NODE_ENV !== 'development') notFound()

  const template = DEFAULT_TEMPLATES.find((item) => item.key === 'permit_dimension_alert')
  if (!template) notFound()

  return <DimensionAlertDemo subjectTemplate={template.subject} bodyTemplate={template.body} />
}
