ohctechv3/.svn/pristine/2f/2fa5f3dc9003ca4b837188218a3c1a5dc6df2025.svn-base
2024-10-28 15:03:36 +05:30

21 lines
378 B
Plaintext

'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;
}