(category: string)
| 25 | } |
| 26 | |
| 27 | export function useCategoryColors(category: string) { |
| 28 | const theme = useThemeStore((state) => state.theme); |
| 29 | const isDarkMode = theme === 'dark'; |
| 30 | |
| 31 | return { |
| 32 | separatorColor: getCategorySeparatorColor(category, isDarkMode), |
| 33 | headerBackgroundColor: getCategoryHeaderBackgroundColor(category, isDarkMode), |
| 34 | textColorClass: getCategoryTextColorClass(category), |
| 35 | }; |
| 36 | } |
nothing calls this directly
no test coverage detected