2024-02-03 20:23:31 -07:00
|
|
|
import React from "react";
|
|
|
|
import { StyleProp, View, ViewStyle } from "react-native";
|
2024-01-15 14:02:51 -07:00
|
|
|
|
2024-02-03 20:23:31 -07:00
|
|
|
import { graphStyles } from "./chart-styles";
|
2024-01-15 14:02:51 -07:00
|
|
|
|
|
|
|
interface ChartViewProps {
|
2024-02-03 20:23:31 -07:00
|
|
|
style?: StyleProp<ViewStyle>;
|
|
|
|
children: React.ReactNode;
|
|
|
|
testID?: string;
|
2024-01-15 14:02:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
const ChartView: React.FC<ChartViewProps> = ({ children, style, testID }) => {
|
2024-02-03 20:23:31 -07:00
|
|
|
return (
|
|
|
|
<View style={[graphStyles.container, style]} testID={testID}>
|
|
|
|
{children}
|
|
|
|
</View>
|
|
|
|
);
|
2024-01-15 14:02:51 -07:00
|
|
|
};
|
|
|
|
|
2024-02-03 20:23:31 -07:00
|
|
|
export default ChartView;
|