Right now mostly extracted from configuration-manager and SilverBullet+'s dashboard. Will be used in more plugs moving forward.
7 lines
182 B
TypeScript
7 lines
182 B
TypeScript
/** Join class-name parts, dropping falsy values. */
|
|
export function cx(
|
|
...parts: Array<string | false | null | undefined>
|
|
): string {
|
|
return parts.filter(Boolean).join(" ");
|
|
}
|