mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Set the color of the canvas's control button #3851 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -58,3 +58,9 @@ export const useTheme = () => {
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
export const useIsDarkTheme = () => {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return theme === 'dark';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user