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).

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