import InputError from '@/components/input-error'; import { Card } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { useForm, usePage } from '@inertiajs/react'; import { FormEventHandler } from 'react'; import LoadingButton from '../loading-button'; const ChangePassword = () => { const { props } = usePage(); const { errors, translate } = props as any; const { button, input } = translate; const { data, setData, put, processing } = useForm({ current_password: '', password: '', password_confirmation: '', }); const onHandleChange = (event: any) => { setData(event.target.name, event.target.value); }; const submit: FormEventHandler = (e) => { e.preventDefault(); put(route('account.change-password')); }; return (

{button.change_password}

{button.change_password}
); }; export default ChangePassword;