import { createElement } from 'react';
import { isValidElementType } from 'react-is';
export function renderAddon(value) {
    return isValidElementType(value) && typeof value !== 'string'
        ? createElement(value)
        : value;
}
/**
 * There is no single `Addon` component. Components that accept addons render their own `gds-addon`
 * container (either inline or via a local wrapper component) that wraps the result of
 * `renderAddon(value)`.
 */
//# sourceMappingURL=Addon.js.map