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