forked from Archives/Athou_commafeed
13 lines
291 B
TypeScript
13 lines
291 B
TypeScript
import { Box } from "@mantine/core"
|
|
import type React from "react"
|
|
import { useMobile } from "@/hooks/useMobile"
|
|
|
|
export function OnDesktop(
|
|
props: Readonly<{
|
|
children: React.ReactNode
|
|
}>
|
|
) {
|
|
const mobile = useMobile()
|
|
return <Box>{!mobile && props.children}</Box>
|
|
}
|