Files
commafeed/commafeed-client/src/components/responsive/OnMobile.tsx
2024-06-13 23:28:45 +02:00

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>
}