import React from 'react'; import { G, Line } from 'react-native-svg'; import { useTheme } from '../../../theme'; import type { AxisCoordinates, XAxisConfig } from '../types'; import { DASH_ARRAY } from './constants'; import useScaleBandX from './hooks/useScaleBandX'; export type XAxisGridProps = { xAxisConfig: XAxisConfig; coordinates: AxisCoordinates; }; const XAxisGrid = ({ xAxisConfig, coordinates }: XAxisGridProps) => { const { xStart, xEnd, yEnd } = coordinates; const theme = useTheme(); const { labels = [] } = xAxisConfig; const { colors: { gridStroke }, } = theme.__hd__.chart; const scaleX = useScaleBandX({ labels, xStart, xEnd }); return ( {labels.map((label) => ( ))} ); }; export default XAxisGrid;