import { isValidElement } from 'react';
export function isReactNode(value) {
    return (value === null ||
        value === undefined ||
        typeof value === 'string' ||
        typeof value === 'number' ||
        typeof value === 'boolean' ||
        isValidElement(value) ||
        (Array.isArray(value) && value.every(isReactNode)));
}
//# sourceMappingURL=isReactNode.js.map