import { redirect } from 'next/navigation' import { createClient } from '@/lib/supabase/server' import InviteForm from './InviteForm' export default async function AdminInvitePage() { const supabase = await createClient() const { data: { user } } = await supabase.auth.getUser() if (!user) { redirect('/login') } // Check if user is admin const { data: profile } = await supabase .from('profiles') .select('is_admin') .eq('id', user.id) .single() if (!profile?.is_admin) { redirect('/dashboard') } return (

Invite New User

Send an invitation email to a new user to give them access to WebVNWrite.

) }