"use client"; import { UserResult } from "@/app/api/user"; import { UserInputs } from "@/app/api/user/actions"; import { Card, CardContent, Grid, Stack, TextField, Typography, makeStyles, } from "@mui/material"; import { useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; const UserDetail: React.FC = () => { const { t } = useTranslation("user"); const { register, formState: { errors }, control, watch, } = useFormContext(); const password = watch("password"); const username = watch("username"); const staffNo = watch("staffNo"); const name = watch("name"); return ( {t("User Detail")} ); }; export default UserDetail;