import {} from '../../types';
/**
 * Clean properties for a component.
 */
export function cleanProps(props) {
    // filter out null/undefined children
    if ('children' in props && Array.isArray(props.children)) {
        const propsCopy = Object.assign({}, props);
        propsCopy.children = props.children.filter(Boolean);
        return propsCopy;
    }
    return props;
}
//# sourceMappingURL=clean-props.js.map