import { RegistryDrivenForm } from '@/components/admin/shared/registry-driven-form';
import { ResidentialStagesAdmin } from '@/components/admin/residential-stages-admin';
import { PageHeader } from '@/components/shared/page-header';

export default function ResidentialStagesPage() {
  return (
    <div className="space-y-6">
      <PageHeader
        title="Residential pipeline stages"
        eyebrow="ADMIN"
        description="Configure the stages residential interests flow through. Removing a stage that still has interests prompts you to reassign them before saving."
      />
      <ResidentialStagesAdmin />

      {/* Partner forwarding - sits on the same admin page so all
          residential-only port settings live in one place. Reps still
          see every inquiry in the CRM; this is an outbound courtesy
          notification for the partner who handles residential leads. */}
      <RegistryDrivenForm
        sections={['residential.partner']}
        title="Partner forwarding"
        description="Email address(es) that receive a copy of every new residential inquiry the moment it lands. Comma-separated. Leave blank to disable."
      />
    </div>
  );
}
