1 | "use client";
|
2 |
|
3 |
|
4 | import getDesignToken from './getDesignToken';
|
5 | import { defaultConfig, useToken as useInternalToken } from './internal';
|
6 | import compactAlgorithm from './themes/compact';
|
7 | import darkAlgorithm from './themes/dark';
|
8 | import defaultAlgorithm from './themes/default';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | function useToken() {
|
14 | const [theme, token, hashId] = useInternalToken();
|
15 | return {
|
16 | theme,
|
17 | token,
|
18 | hashId
|
19 | };
|
20 | }
|
21 | export default {
|
22 |
|
23 | defaultConfig,
|
24 |
|
25 | defaultSeed: defaultConfig.token,
|
26 | useToken,
|
27 | defaultAlgorithm,
|
28 | darkAlgorithm,
|
29 | compactAlgorithm,
|
30 | getDesignToken
|
31 | }; |
\ | No newline at end of file |