import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025-2026 GoodData Corporation
import { PatternFill, getPatternFill, } from "@gooddata/sdk-ui-vis-commons";
export function OptionalPatternFill({ chartFill, patternFillIndex }) {
    if (chartFill !== "pattern" || patternFillIndex === undefined) {
        return null;
    }
    const patternFill = getPatternFill(patternFillIndex);
    return _jsx(PatternFill, { patternFill: patternFill });
}
//# sourceMappingURL=OptionalPatternFill.js.map