MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ShareUrlProvider

Function ShareUrlProvider

packages/dev/s2-docs/src/CodePlatter.tsx:99–101  ·  view source on GitHub ↗
(props: ProviderProps<string | null>)

Source from the content-addressed store, hash-verified

97
98const ShareContext = createContext<string | null>(null);
99export function ShareUrlProvider(props: ProviderProps<string | null>) {
100 return <ShareContext {...props} />;
101}
102
103export function CodePlatter({children, type, showCoachMark}: CodePlatterProps) {
104 let codeRef = useRef<HTMLDivElement | null>(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected