UNPKG

@shopify/react-server

Version:
10 lines (9 loc) 374 B
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 {};