import { FC, useState } from "react"; import { SheetBetter } from "./sheet"; import { NotificationUnread } from "@/lib/svg/NotificationUnread"; import { X } from "lucide-react"; import { ListUI } from "../list/ListUI"; import { events } from "@/lib/utils/event"; import { apix } from "@/lib/utils/apix"; import { getNumber } from "@/lib/utils/getNumber"; export const NotificationSheet: FC<{ children?: any; className?: string }> = ({ children, className, }) => { const [isNotification, setNotification] = useState(false); return ( {children ? children : } } side="right" onOpenChange={(event) => { setNotification(event); }} showClose={false} className="p-0" >

Notification

{ setNotification(false); }} >
{ return ( <>
ANNOUNCEMENT
March 17, 2025

Join our online event and learn how to make money online

); }} onLoad={async (param: any) => { const params = await events("onload-param", { ...param, }); const result: any = await apix({ port: "recruitment", value: "data.data.job_postings", path: `/api/job-postings${params}`, validate: "array", }); return result; }} onCount={async () => { const result: any = await apix({ port: "recruitment", value: "data.data.total", path: `/api/job-postings?page=1&page_size=1`, validate: "object", }); return getNumber(result); }} />
); };