UNPKG
@vchatcloud/react-ui-kit
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
VChatCloud UI Kit for react integration
www.vchatcloud.com
@vchatcloud/react-ui-kit
/
dist
/
store
/
theme.d.ts
11 lines
(10 loc)
•
269 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
type
Theme
=
"light"
|
"dark"
;
type
Store
= {
theme
:
Theme
; };
type
Action
= {
set
:
(
theme
:
Theme
) =>
void
;
toggle
:
() =>
void
; };
declare
const
useTheme
:
import
(
'zustand'
).
UseBoundStore
<
import
(
'zustand'
).
StoreApi
<
Store
&
Action
>>;
export
default
useTheme;