Files
commafeed/commafeed-client/src/hooks/useActionButton.ts
2024-06-13 23:28:45 +02:00

10 lines
288 B
TypeScript

import { useMantineTheme } from "@mantine/core"
import { useMobile } from "hooks/useMobile"
export const useActionButton = () => {
const theme = useMantineTheme()
const mobile = useMobile(theme.breakpoints.xl)
const spacing = mobile ? 14 : 0
return { mobile, spacing }
}