2022-08-13 10:56:07 +02:00
|
|
|
import { DEFAULT_THEME } from "@mantine/core"
|
|
|
|
|
|
|
|
|
|
export const Constants = {
|
|
|
|
|
categoryIds: {
|
|
|
|
|
all: "all",
|
|
|
|
|
},
|
|
|
|
|
layout: {
|
|
|
|
|
mobileBreakpoint: DEFAULT_THEME.breakpoints.md,
|
|
|
|
|
headerHeight: 60,
|
|
|
|
|
sidebarWidth: 350,
|
2022-08-19 08:43:13 +02:00
|
|
|
isTopVisible: (div: HTMLDivElement) => div.getBoundingClientRect().top >= Constants.layout.headerHeight,
|
|
|
|
|
isBottomVisible: (div: HTMLDivElement) => div.getBoundingClientRect().bottom <= window.innerHeight,
|
2022-08-13 10:56:07 +02:00
|
|
|
},
|
|
|
|
|
dom: {
|
|
|
|
|
mainScrollAreaId: "main-scroll-area-id",
|
|
|
|
|
},
|
|
|
|
|
}
|