mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00

* add node find (#4902) * add node find * plugin header * fix * fix * remove * type * add searched status * optimize * perf: search nodes --------- Co-authored-by: heheer <heheer@sealos.io>
11 lines
383 B
TypeScript
11 lines
383 B
TypeScript
import { useSystemStoreContext } from '../context/useSystem';
|
|
import { useContextSelector } from 'use-context-selector';
|
|
|
|
export const useSystem = () => {
|
|
const isPc = useContextSelector(useSystemStoreContext, (state) => state.isPc);
|
|
const isMac =
|
|
typeof window !== 'undefined' && window.navigator.userAgent.toLocaleLowerCase().includes('mac');
|
|
|
|
return { isPc, isMac };
|
|
};
|