mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-10 06:23:11 +08: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]}`);
|
|
};
|