Something went wrong. Try again.
a tool for shared writing and social publishing
Something went wrong. Try again.
378 B · 13 lines
TSX
at main
1234567891011121314import { getIdentityData } from "actions/getIdentityData";import { IdentityContextProvider } from "./IdentityProvider";
export async function IdentityProviderServer(props: { children: React.ReactNode;}) { let identity = await getIdentityData(); return ( <IdentityContextProvider initialValue={identity}> {props.children} </IdentityContextProvider> );}