switching
This commit is contained in:
14
src/components/PerformanceWarning.tsx
Normal file
14
src/components/PerformanceWarning.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import { useStore } from '@nanostores/react';
|
||||
import { uiState } from '../stores/ui';
|
||||
|
||||
export function PerformanceWarning() {
|
||||
const ui = useStore(uiState);
|
||||
|
||||
if (!ui.performanceWarningVisible) return null;
|
||||
|
||||
return (
|
||||
<div id="performance-warning" style={{ display: 'block' }}>
|
||||
Performance warning: Shader taking too long to render!
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user