From f34b9de97f61eb5b075d6adedfcacfa5e097943b Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 6 Jun 2022 17:27:56 -0400 Subject: [PATCH] feat(utils): add joinClassNames util --- src/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index d47918f..014d737 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -85,3 +85,7 @@ export function unpatch(obj: any, name: any): void { export function getReactInstance(o: HTMLElement | Element | Node) { return o[Object.keys(o).find(k => k.startsWith('__reactInternalInstance')) as string] } + +export function joinClassNames(...classes: string[]): string { + return classes.join(" "); +} \ No newline at end of file