mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
The loader and the Next plugin only existed to drive webpack; Next runs on Turbopack and Vite has its own plugin. kitchen-sink and the integration app serve through vite, the optimizer suite drops the webpack name, and its fixture packages join the workspace so a fresh checkout links @my/ui.
13 lines
504 B
TypeScript
13 lines
504 B
TypeScript
// on Web, we don't use React Navigation, so we are going to avoid the safe area provider
|
|
// instead, we just have a no-op here
|
|
// for more, see: https://solito.dev/recipes/tree-shaking
|
|
|
|
// if you need safe area hooks yourself, you can implement this yourself
|
|
// however, you may be better off using the CSS selector for env(safe-area-inset-top) on Web
|
|
|
|
// for more, see the `./use-safe-area.web.ts` file
|
|
|
|
export const SafeArea = ({ children }: { children: React.ReactElement }) => (
|
|
<>{children}</>
|
|
)
|