UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

10 lines 518 B
import { ComponentProps, ComponentType, PropsWithChildren, ReactNode } from 'react'; type ConditionalWrapperProps<TWrapper extends ComponentType<PropsWithChildren> = ComponentType<PropsWithChildren>> = { condition: boolean; wrapper: TWrapper; wrapperProps?: Omit<ComponentProps<TWrapper>, 'children'>; children: ReactNode; }; export default function ConditionalWrapper(props: ConditionalWrapperProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=ConditionalWrapper.d.ts.map