'use client' import { useActionState } from 'react' import { createUser } from './actions' import { UserPlus } from 'lucide-react' export default function CreateUserForm() { const [state, formAction, isPending] = useActionState(createUser, undefined) return (

Yeni Kullanıcı Ekle

Sisteme yeni bir yönetici veya editör ekleyin.

{state?.success && (
Kullanıcı başarıyla oluşturuldu.
)} {state?.error && (
{state.error}
)}
) }