source: node_modules/recharts/es6/context/legendPayloadContext.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 359 bytes
Line 
1import { useAppSelector } from '../state/hooks';
2import { selectLegendPayload } from '../state/selectors/legendSelectors';
3
4/**
5 * Use this hook in Legend, or anywhere else where you want to read the current Legend items.
6 * @return all Legend items ready to be rendered
7 */
8export function useLegendPayload() {
9 return useAppSelector(selectLegendPayload);
10}
Note: See TracBrowser for help on using the repository browser.