import { Form, Head } from '@inertiajs/react'; import { Save } from 'lucide-react'; import { useRef } from 'react'; import SecurityController from '@/actions/App/Http/Controllers/Admin/Settings/SecurityController'; import Heading from '@/components/heading'; import InputError from '@/components/input-error'; import PasswordInput from '@/components/password-input'; import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; import { edit } from '@/routes/admin/settings/security'; type Props = { passwordRules: string; }; export default function Security({ passwordRules }: Props) { const passwordInput = useRef(null); const currentPasswordInput = useRef(null); return ( <>

Pengaturan Kata Sandi

{ if (errors.password) { passwordInput.current?.focus(); } if (errors.current_password) { currentPasswordInput.current?.focus(); } }} className="space-y-6" > {({ errors, processing }) => ( <>
)}
); } Security.layout = { breadcrumbs: [ { title: 'Pengaturan Kata Sandi', href: edit(), }, ], };