import React from 'react'; import { useForm } from '@inertiajs/react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; const ProfileAccount = () => { const { data, setData, post, processing, errors } = useForm({ name: '', email: '', }); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); post('/profile/account'); }; return (
Account bearbeiten
setData('name', e.target.value)} /> {errors.name &&

{errors.name}

}
setData('email', e.target.value)} /> {errors.email &&

{errors.email}

}
); }; export default ProfileAccount;