/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ import { jsx as _jsx } from "react/jsx-runtime";
import { Sparkbar } from '@essex/charts-react';
import { memo } from 'react';
import { getValue } from '../ArqueroDetailsList.utils.js';
import { useCellDimensions } from '../hooks/index.js';
/**
 * Renders an array-valued cell as a Sparkbar.
 */ export const SparkbarCell = /*#__PURE__*/ memo(function SparkbarCell({ item , column  }) {
    const values = getValue(item, column) || [];
    const dimensions = useCellDimensions(column);
    return /*#__PURE__*/ _jsx(Sparkbar, {
        data: values,
        width: dimensions.width,
        height: dimensions.height
    });
});
