a tool for shared writing and social publishing
1"use client";
2import { createContext } from "react";
3
4export const IPLocationContext = createContext<string | null>(null);
5export const IPLocationProvider = (props: {
6 country: string | null;
7 children: React.ReactNode;
8}) => {
9 return (
10 <IPLocationContext.Provider value={props.country}>
11 {props.children}
12 </IPLocationContext.Provider>
13 );
14};