import { FunctionComponent, ReactNode } from "react"; type Props = { condition: boolean; wrapper: (_: ReactNode) => any; children: ReactNode; }; /** * A function to wrap elements with a "wrapper" on a condition * @param {object} wrappingOptions * condition == boolean condition, when to wrap * wrapper == style to wrap. e.g