import { createContext, useContext, type ReactNode } from "react" const PathnameContext = createContext("/") export function PathnameProvider({ children, pathname, }: { children: ReactNode pathname: string }) { return ( {children} ) } export function usePathname() { return useContext(PathnameContext) }