import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, } from "@/components/ui/dialog" import { Button } from "@/components/ui/button" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Label } from "@/components/ui/label" import { Input } from "@/components/ui/input" import { DatePicker } from "@/components/module/date-picker" import Backdrop from "@/components/module/backdrop" import { CreatePricePlanPayload } from "../../data/repository" import { format } from "date-fns" import pricePlanFormStore from "../../store/form-store" import { observer } from "mobx-react-lite" interface ModalCreatePriceplanProps { ppTypes: Array<{ [key: string]: string }> serviceTypes: Array<{ [key: string]: string }> onOpenChange: (open: boolean) => void onConfirm: (payload: CreatePricePlanPayload) => void } const ModalCreatePriceplan = observer(({ ppTypes, serviceTypes, onOpenChange, onConfirm }: ModalCreatePriceplanProps) => { return ( onOpenChange(false)}> New Price Plan

Basic Information

pricePlanFormStore.setOfferName(event.target.value)} />
pricePlanFormStore.setPricePlanCode(event.target.value)} />
pricePlanFormStore.setBaseValidPeriod(date)} /> -
pricePlanFormStore.setRemarks(event.target.value)} />

Version Information

pricePlanFormStore.setVersionValidPeriod(date)} /> -
) }) export default ModalCreatePriceplan