UNPKG

@atlaskit/page-layout

Version:

A collection of components which let you compose an application's page layout.

6 lines 299 B
import { PAGE_LAYOUT_LS_KEY } from './constants'; import safeLocalStorage from './safe-local-storage'; export var getGridStateFromStorage = function getGridStateFromStorage(key) { var storageValue = JSON.parse(safeLocalStorage().getItem(PAGE_LAYOUT_LS_KEY) || '{}'); return storageValue[key]; };