UNPKG

npm-check-extras

Version:

CLI app to check for outdated and unused dependencies, and run update/delete action over selected ones

15 lines (14 loc) 435 B
import { atom } from 'nanostores'; import RangeStepper from 'range-stepper'; export const $panelStepper = atom(new RangeStepper({ max: 1, current: 1 })); export const panelManager = { next() { $panelStepper.set($panelStepper.get().next().dup()); }, back() { $panelStepper.set($panelStepper.get().previous().dup()); }, isActive(index) { return $panelStepper.get().isCurrent(index); }, };