UNPKG

@fchh/fcos-suite-ui

Version:

Reusable UI components based on React and TailwindCSS for the Fab City OS Suite (initially funded by the Interfacer EU project).

8 lines (7 loc) 432 B
import { ReactElement, ReactNode, PropsWithChildren } from 'react'; interface ConditionalWrapperProps { condition: boolean; wrapper: (c: ReactElement | ReactNode) => ReactElement | ReactNode | JSX.Element; } export declare function ConditionalWrapper({ condition, wrapper, children, }: PropsWithChildren<ConditionalWrapperProps>): string | number | boolean | Iterable<ReactNode> | JSX.Element | null | undefined; export {};