// components/providers/NotFoundProvider.tsx
"use client";

import { createContext, useContext, useState } from "react";

const NotFoundContext = createContext({
  isNotFound: false,
  setIsNotFound: (_value: boolean) => {},
});

export function NotFoundProvider({ children }: { children: React.ReactNode }) {
  const [isNotFound, setIsNotFound] = useState(false);

  return (
    <NotFoundContext.Provider value={{ isNotFound, setIsNotFound }}>
      {children}
    </NotFoundContext.Provider>
  );
}

export const useNotFound = () => useContext(NotFoundContext);
