import { NotificationChannelsForm } from "./NotificationChannelsForm"; import { useNavigate } from "react-router"; import { z } from "zod"; import { usePost } from "@/hooks/UseApi"; import { notificationChannelSchema } from "@/validation"; import type { INotificationChannel } from "@/types/notification-channel"; type FormValues = z.infer; const NotificationsChannelCreatePage = () => { const { post, loading } = usePost(); const navigate = useNavigate(); const onSubmit = async (data: FormValues) => { const res = await post("/notification-channels", data); if (res) { navigate(-1); } }; return ; }; export default NotificationsChannelCreatePage;