pages235/src/react/FullScreenWidget.tsx
Vitaly Turovsky 346211d245 fix: fix critical fps regression in worlds with many signs (gpu textures overflow), add most basic optimizations, clear textures on chunks unload
feat: Add signs debug widget (f3+t) which shows all loaded signs and its positions
2024-02-06 10:02:31 +03:00

10 lines
271 B
TypeScript

import Screen from './Screen'
import { useIsWidgetActive } from './utils'
export default ({ name, title, children }) => {
const isWidgetActive = useIsWidgetActive(name)
if (!isWidgetActive) return null
return <Screen backdrop title={title}>{children}</Screen>
}