mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-16 14:14:00 -06:00
9 lines
270 B
TypeScript
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;
|
|
} |