(category: string, isDarkMode: boolean)
| 20 | } |
| 21 | |
| 22 | export function getCategoryHeaderBackgroundColor(category: string, isDarkMode: boolean): string { |
| 23 | const colors = getComponentCategoryDescriptor(resolveCategory(category)).headerBackgroundColor; |
| 24 | return isDarkMode ? colors.dark : colors.light; |
| 25 | } |
| 26 | |
| 27 | export function useCategoryColors(category: string) { |
| 28 | const theme = useThemeStore((state) => state.theme); |
no test coverage detected