import React from "react"; const NotFound = React.createContext((notFound?: boolean) => {}); export function useShowNotFound(): (notFound?: boolean) => void { const context = React.useContext(NotFound); if (context === undefined) { throw new Error("useShowNotFound must be used within PageNotFoundBoundary"); } return context; } export default NotFound;