/**
 * @module components/common/Branch
 */
import { Fragment } from 'react';
const Branch = ({ left, right, children, condition, ...props }) => {
    const Component = (condition
        ? left
        : right || Fragment);
    return <Component {...((condition || right) && props)}>{children}</Component>;
};
export default Branch;
