mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
4.8.16 test (#3442)
* perf: simple app save * fix: notify config i18n * perf: service side props render * perf: model selector * update doc
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { useMediaQuery } from '@chakra-ui/react';
|
||||
import { useSystemStoreContext } from '../context/useSystem';
|
||||
import { useContextSelector } from 'use-context-selector';
|
||||
|
||||
export const useSystem = () => {
|
||||
const [isPc] = useMediaQuery('(min-width: 900px)');
|
||||
const isPc = useContextSelector(useSystemStoreContext, (state) => state.isPc);
|
||||
|
||||
return { isPc };
|
||||
};
|
||||
|
Reference in New Issue
Block a user