mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-28 15:19:36 +02:00
9 lines
180 B
TypeScript
9 lines
180 B
TypeScript
|
import { Config } from '../interfaces';
|
||
|
|
||
|
export const storeUIConfig = <K extends keyof Config>(
|
||
|
key: K,
|
||
|
config: Config
|
||
|
) => {
|
||
|
localStorage.setItem(key, `${config[key]}`);
|
||
|
};
|