pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
'use client';
|
||||
|
||||
import getThemeProps from './getThemeProps';
|
||||
import useTheme from '../useTheme';
|
||||
export default function useThemeProps({
|
||||
props,
|
||||
name,
|
||||
defaultTheme,
|
||||
themeId
|
||||
}) {
|
||||
let theme = useTheme(defaultTheme);
|
||||
if (themeId) {
|
||||
theme = theme[themeId] || theme;
|
||||
}
|
||||
const mergedProps = getThemeProps({
|
||||
theme,
|
||||
name,
|
||||
props
|
||||
});
|
||||
return mergedProps;
|
||||
}
|
||||
Reference in new issue
Block a user