Files
commafeed/commafeed-client/src/components/responsive/OnDesktop.tsx

13 lines
291 B
TypeScript
Raw Normal View History

import { Box } from "@mantine/core"
import type React from "react"
2025-06-27 16:29:31 +02:00
import { useMobile } from "@/hooks/useMobile"
2025-07-29 15:21:15 +02:00
export function OnDesktop(
props: Readonly<{
children: React.ReactNode
}>
) {
const mobile = useMobile()
return <Box>{!mobile && props.children}</Box>
}