"use client"; import ComponentGlobal_ErrorInput from "@/app_modules/_global/component/error_input"; import ComponentGlobal_InputCountDown from "@/app_modules/_global/component/input_countdown"; import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil"; import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal"; import { ActionIcon, Box, Button, Center, Grid, Group, Stack, Text, TextInput, Textarea } from "@mantine/core"; import { DatePickerInput } from "@mantine/dates"; import { IconPlus, IconTrash } from "@tabler/icons-react"; import { useAtom } from "jotai"; import _ from "lodash"; import moment from "moment"; import { useRouter } from "next/navigation"; import { useState } from "react"; import { Vote_funEditById } from "../fun/edit/fun_edit_by_id"; import { gs_vote_hotMenu, gs_vote_status } from "../global_state"; import { MODEL_VOTING, MODEL_VOTING_DAFTAR_NAMA_VOTE, } from "../model/interface"; export default function Vote_Edit({ dataVote, listDaftarVote, }: { dataVote: MODEL_VOTING; listDaftarVote: MODEL_VOTING_DAFTAR_NAMA_VOTE[]; }) { const [data, setData] = useState(dataVote); const [pilihanNama, setPilihanNama] = useState(listDaftarVote); return ( <> ) : ( "" ) } onChange={(val) => { setData({ ...data, title: val.target.value, }); }} />