import { Form, Head } from '@inertiajs/react'; import { useRef } from 'react'; import { toast } from 'sonner'; import SecurityController from '@/actions/App/Http/Controllers/Settings/SecurityController'; import { InputError } from '@/components/ui'; import { PasswordInput } from '@/components/inputs'; import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { Label } from '@/components/ui/label'; import { edit } from '@/routes/security'; type Props = { passwordRules: string; }; export default function Security(props: Props) { const passwordInput = useRef(null); const currentPasswordInput = useRef(null); return ( <>

Kata Sandi

{ toast.error('Ada data yang belum sesuai, silakan periksa kembali input Anda.'); }} > {({ errors, processing }) => (
)}
); }