@razorpay/blade
Version:
The Design System that powers Razorpay
14 lines (11 loc) • 438 B
JavaScript
import { useAppSelector } from '../state/hooks.js';
import { selectLegendPayload } from '../state/selectors/legendSelectors.js';
/**
* Use this hook in Legend, or anywhere else where you want to read the current Legend items.
* @return all Legend items ready to be rendered
*/
function useLegendPayload() {
return useAppSelector(selectLegendPayload);
}
export { useLegendPayload };
//# sourceMappingURL=legendPayloadContext.js.map