source: node_modules/recharts/lib/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: 492 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.useLegendPayload = useLegendPayload;
7var _hooks = require("../state/hooks");
8var _legendSelectors = require("../state/selectors/legendSelectors");
9/**
10 * Use this hook in Legend, or anywhere else where you want to read the current Legend items.
11 * @return all Legend items ready to be rendered
12 */
13function useLegendPayload() {
14 return (0, _hooks.useAppSelector)(_legendSelectors.selectLegendPayload);
15}
Note: See TracBrowser for help on using the repository browser.