UNPKG

piral-dashboard

Version:

Plugin for creating a centralized dashboard in Piral.

20 lines 544 B
import { withKey, withoutKey } from 'piral-core'; export function registerTile(ctx, name, value) { ctx.dispatch((state) => ({ ...state, registry: { ...state.registry, tiles: withKey(state.registry.tiles, name, value), }, })); } export function unregisterTile(ctx, name) { ctx.dispatch((state) => ({ ...state, registry: { ...state.registry, tiles: withoutKey(state.registry.tiles, name), }, })); } //# sourceMappingURL=actions.js.map