import { selectConsumptionTrends } from 'app/modules/bunkerAdjustment/store/bunkerAdjustmentTrends.selectors';
import numberPipe from 'app/shared/pipes/number.pipe';
import { selectVesselName } from 'app/modules/vesselDetails/root/store/vesselDetails.selectors';
import React from 'react';
import { useSelector } from 'react-redux';
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ResponsiveContainer,
} from 'recharts';
import { cartesianGridStyle, xAxisStyle, yAxisStyle, tooltipStyle, lineStyle } from '../../config/trendsTheme';
import { BunkerAdjustmentTrendsLegend } from './BunkerAdjustmentTrendsLegend';
import { tooltipFactory } from './BunkerAdjustmentTrendsTooltip';
import { isOverMedium } from 'app/shared/store/ui/ui.helper';
import { selectScreenWidth } from 'app/shared/store/ui/ui.selectors';
const BunkerAdjustmentConsumptionTrend = () => {
const data = useSelector(selectConsumptionTrends);
const vesselName = useSelector(selectVesselName);
const isMobile = !isOverMedium(useSelector(selectScreenWidth));
const tooltip = tooltipFactory({
colorScheme: 'consumption',
valueFormatter: (value) => numberPipe.format(value, 2, 2),
primaryDescription: vesselName,
secondaryDescription: 'Virtual Pool Vessel',
unit: '/mt',
});
return (
<>