@shopify/react-server
Version:
Utilities for React server-side rendering.
10 lines (9 loc) • 374 B
TypeScript
import React from 'react';
interface Props<ContextType> {
condition: boolean;
provider: React.Provider<ContextType>;
props: React.ProviderProps<ContextType>;
children: React.ReactElement<ContextType>;
}
export declare function ConditionalProvider<ContextType>({ condition, provider: Provider, props, children, }: Props<ContextType>): JSX.Element;
export {};