1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 21:39:36 +02:00
flame/client/src/utility/storeUIConfig.ts
2021-11-05 17:16:19 +01:00

8 lines
180 B
TypeScript

import { Config } from '../interfaces';
export const storeUIConfig = <K extends keyof Config>(
key: K,
config: Config
) => {
localStorage.setItem(key, `${config[key]}`);
};