<template>
  <form-page
    :isEdit="true"
    title="Edit User"
    :schemas="schemas"
    :api="UserApi"
  ></form-page>
</template>
<script setup>
import * as Yup from "yup";
import FormPage from "@/components/Page/FormPage.vue";
import { UserApi } from "@/api/user.js";
const schemas = [
  {
    label: "Nama User",
    name: "name",
    validation: Yup.string().required().label("Nama User"),
    cols: 6,
  },
  {
    label: "Email",
    name: "email",
    validation: Yup.string().required().label("Email User"),
    cols: 6,
  },
  {
    label: "username",
    name: "username",
    validation: Yup.string().required().label("Username"),
    cols: 6,
  },
  {
    label: "Password User",
    name: "password",
    validation: Yup.string().required().label("Password User"),
    cols: 6,
    type: "password",
  },
];
</script>
