|
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 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.useLegendPayload = useLegendPayload;
|
|---|
| 7 | var _hooks = require("../state/hooks");
|
|---|
| 8 | var _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 | */
|
|---|
| 13 | function useLegendPayload() {
|
|---|
| 14 | return (0, _hooks.useAppSelector)(_legendSelectors.selectLegendPayload);
|
|---|
| 15 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.