import React from "react";
import PropTypes from "prop-types";
import { DiscreteColorLegend } from "@emerson-eps/color-tables";
const DiscreteLegendWrapper = ({ discreteData, title, position, colorName, colorTables, horizontal, }) => {
    return (React.createElement(DiscreteColorLegend, { discreteData: discreteData, dataObjectName: title, position: position, colorName: colorName, colorTables: colorTables, horizontal: horizontal }));
};
DiscreteLegendWrapper.propTypes = {
    discreteData: PropTypes.any.isRequired,
    title: PropTypes.string.isRequired,
    position: PropTypes.arrayOf(PropTypes.number.isRequired),
    colorName: PropTypes.string.isRequired,
    colorTables: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
    horizontal: PropTypes.bool,
};
export default DiscreteLegendWrapper;
//# sourceMappingURL=WebVizDiscreteLegend.js.map