mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 21:39:36 +02:00
8 lines
180 B
TypeScript
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]}`);
|
|
};
|