"use client"; import { RouterColab } from "@/app/lib/router_hipmi/router_colab"; import { Button, NumberInput, Select, Stack, Text, TextInput, Textarea, } from "@mantine/core"; import { useRouter } from "next/navigation"; import { useState } from "react"; import { MODEL_COLLABORATION, MODEL_COLLABORATION_MASTER, } from "../model/interface"; import colab_funCreateProyek from "../fun/create/fun_create_proyek"; import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil"; import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal"; import _ from "lodash"; import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global/notifikasi_peringatan"; import { MainColor } from "@/app_modules/_global/color/color_pallet"; import ComponentGlobal_InputCountDown from "@/app_modules/_global/component/input_countdown"; import mqtt_client from "@/util/mqtt_client"; export default function Colab_Create({ listIndustri, }: { listIndustri: MODEL_COLLABORATION_MASTER[]; }) { const [value, setValue] = useState({ title: "", lokasi: "", purpose: "", benefit: "", projectCollaborationMaster_IndustriId: 0, // jumlah_partisipan: 0, }); return ( <> { setValue({ ...value, title: val.currentTarget.value, }); }} /> { setValue({ ...value, lokasi: val.currentTarget.value, }); }} />