about summary refs log tree commit diff
path: root/src/view/com/util/layouts/withBreakpoints.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-03 14:18:13 -0800
committerGitHub <noreply@github.com>2025-02-03 22:18:13 +0000
commitfa8607b861e0719d76778aa14af0745313640e33 (patch)
tree7496a49cba6627809be0a4067dde5cca0d8fece0 /src/view/com/util/layouts/withBreakpoints.tsx
parent23e62b18de9537b50c8b1df2b4744adc030501d0 (diff)
downloadvoidsky-fa8607b861e0719d76778aa14af0745313640e33.tar.zst
Spring cleaning (#7640)
* delete breakpoint layouts

* delete empty file

* delete legacy radio buttons

* delete selectable button

* rm radio buttons from debug

* delete storage.ts

* delete type-assertions.ts
Diffstat (limited to 'src/view/com/util/layouts/withBreakpoints.tsx')
-rw-r--r--src/view/com/util/layouts/withBreakpoints.tsx21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/view/com/util/layouts/withBreakpoints.tsx b/src/view/com/util/layouts/withBreakpoints.tsx
deleted file mode 100644
index 71971c604..000000000
--- a/src/view/com/util/layouts/withBreakpoints.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react'
-
-import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
-import {isNative} from '#/platform/detection'
-
-export const withBreakpoints = <P extends object>(
-  Mobile: React.ComponentType<P>,
-  Tablet: React.ComponentType<P>,
-  Desktop: React.ComponentType<P>,
-): React.FC<P> =>
-  function WithBreakpoints(props: P) {
-    const {isMobile, isTabletOrMobile} = useWebMediaQueries()
-
-    if (isMobile || isNative) {
-      return <Mobile {...props} />
-    }
-    if (isTabletOrMobile) {
-      return <Tablet {...props} />
-    }
-    return <Desktop {...props} />
-  }