a tool for shared writing and social publishing
at feature/reader 14 lines 361 B view raw
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};