mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-10 16:09:17 -06:00
Add global links & open icon links in new tab
This commit is contained in:
@@ -6,6 +6,14 @@ export function classNames(...classes: (string | null | undefined)[]) {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
|
||||
/**
|
||||
* A handler that simply calls the `stopPropagation` method on an event.
|
||||
* @param event The event to prevent propagation on.
|
||||
*/
|
||||
export const stopPropagation = (event: Event) => {
|
||||
event.stopPropagation();
|
||||
};
|
||||
|
||||
const isClient = (): boolean => {
|
||||
return typeof window !== "undefined";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user