mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
10 lines
315 B
JavaScript
10 lines
315 B
JavaScript
// @flow
|
|
import {
|
|
getItemFromStorage,
|
|
storeItem,
|
|
removeItemFromStorage,
|
|
} from '../../lib/localStorage';
|
|
|
|
export const getCheckedStatusById = (id: string) => getItemFromStorage(id);
|
|
export const setCheckedStatusById = (id: string, store: boolean) =>
|
|
store ? storeItem(id, true) : removeItemFromStorage(id);
|