Files
xevion.dev/src/utils/helpers.ts

9 lines
270 B
TypeScript

export function classNames(...classes: (string | null | undefined)[]) {
return classes.filter(Boolean).join(" ");
}
const hoverableQuery = window.matchMedia('(hover: hover) and (pointer: fine)');
export function isHoverable() {
return hoverableQuery.matches;
}