/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { Sparkline } from '@essex/charts-react' import { memo } from 'react' import { EMPTY_ARRAY } from '../../../empty.js' import { getValue } from '../ArqueroDetailsList.utils.js' import { useCellDimensions } from '../hooks/index.js' import type { ColumnCellChartProps } from './types.js' /** * Renders an array-valued cell as a sparkline. */ export const SparklineCell: React.FC = memo( function SparklineCell({ item, column, color }) { const values = getValue(item, column) || EMPTY_ARRAY const dimensions = useCellDimensions(column) return ( ) }, )