import { requireStaffAuth } from "@/lib/staff-auth";
import OrganizationsList from "@/components/staff/OrganizationsList";

export const metadata = {
  title: "Organizations - Staff Dashboard",
  description: "Manage organization WhatsApp credentials",
};

export default async function OrganizationsPage() {
  await requireStaffAuth();

  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-3xl font-bold text-brand-ink">Organizations</h1>
        <p className="text-gray-600 mt-1">
          View all organizations and manage their Twilio WhatsApp credentials
        </p>
      </div>

      <OrganizationsList />
    </div>
  );
}
