forked from Archives/Athou_commafeed
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { Box, MediaQuery } from "@mantine/core"
|
|
import { Constants } from "app/constants"
|
|
import React from "react"
|
|
|
|
export function OnMobile(props: { children: React.ReactNode }) {
|
|
return (
|
|
<MediaQuery largerThan={Constants.layout.mobileBreakpoint} styles={{ display: "none" }}>
|
|
<Box>{props.children}</Box>
|
|
</MediaQuery>
|
|
)
|
|
}
|