"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChartLegendProps = void 0;
var react_1 = __importDefault(require("react"));
var ChartLegend_1 = require("./ChartLegend");
var getChartLegendProps = function (width) {
    var alignRight = width > 550;
    return {
        layout: alignRight ? 'vertical' : 'horizontal',
        align: alignRight ? 'right' : 'center',
        verticalAlign: alignRight ? 'middle' : 'bottom',
        wrapperStyle: {
            display: 'flex',
            overflowY: 'auto',
            maxHeight: alignRight ? '100%' : '50%',
            maxWidth: alignRight ? '50%' : '100%'
        },
        content: react_1.default.createElement(ChartLegend_1.ChartLegend, { alignRight: alignRight })
    };
};
exports.getChartLegendProps = getChartLegendProps;
