"use client"; import { Stack, TextInput, Select, Textarea, Button } from "@mantine/core"; import { useRouter } from "next/navigation"; import React, { useState } from "react"; import { MODEL_COLLABORATION, MODEL_COLLABORATION_MASTER, } from "../model/interface"; import colab_funEditById from "../fun/edit/fun_edit_by_id"; import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/component_global/notif_global/notifikasi_gagal"; import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/component_global/notif_global/notifikasi_berhasil"; export default function Colab_Edit({ selectedData, listIndustri, }: { selectedData: MODEL_COLLABORATION; listIndustri: MODEL_COLLABORATION_MASTER[]; }) { const [value, setValue] = useState(selectedData); return ( <> {/*
{JSON.stringify(value, null, 2)}
*/} setValue({ ...value, title: val.currentTarget.value, }) } /> setValue({ ...value, lokasi: val.currentTarget.value, }) } />