"use client"; import React, { useEffect } from "react"; import DateRangePicker from "@/components/date-range-picker"; import { usePathname } from "@/components/navigation"; import { cn, getCookiesDecrypt } from "@/lib/utils"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "./ui/dialog"; import { Button } from "./ui/button"; import { Label } from "./ui/label"; import { Input } from "./ui/input"; const PageTitle = ({ title, className, }: { title?: string; className?: string; }) => { const pathname = usePathname(); const name = pathname?.split("/").slice(1).join(" "); const roleId = getCookiesDecrypt("urie"); useEffect(() => { console.log("role", roleId); }, [roleId]); return Number(roleId) == 2 || Number(roleId) == 11 || Number(roleId) == 12 ? ( "" ) : (