'use client' import { useActionState, useEffect, useState } from 'react' import { updateAkunBalita } from '@/app/actions' import { User, MapPin, Phone, Baby, Calendar, Lock, AtSign, CheckCircle, XCircle, X } from 'lucide-react' interface AkunBalita { id: string nama_orang_tua: string alamat: string | null no_whatsapp: string | null nama_anak: string tanggal_lahir: string | null username: string password: string } interface Props { pengguna: AkunBalita } interface ToastProps { message: string type: 'success' | 'error' onClose: () => void } function Toast({ message, type, onClose }: ToastProps) { useEffect(() => { const timer = setTimeout(onClose, 4000) return () => clearTimeout(timer) }, [onClose]) return (