mirror of https://github.com/msgbyte/tailchat
feat: add custom serverName render in login view
parent
9c7448b7cb
commit
d9adf84014
@ -0,0 +1,17 @@
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import type { GlobalConfig } from '../model/config';
|
||||
import { defaultGlobalConfig } from '../utils/consts';
|
||||
|
||||
type GlobalConfigState = GlobalConfig;
|
||||
|
||||
export const useGlobalConfigStore = create<GlobalConfigState>()(
|
||||
persist(
|
||||
(set) => ({
|
||||
...defaultGlobalConfig,
|
||||
}),
|
||||
{
|
||||
name: 'globalConfigStore',
|
||||
}
|
||||
)
|
||||
);
|
Loading…
Reference in New Issue