ghost-portal/packages/react-components/src/util/classes.ts
2020-09-17 16:46:46 +02:00

9 lines
299 B
TypeScript

// Copyright 2017-2020 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
export default function classes (...classNames: (boolean | null | string | undefined)[]): string {
return classNames
.filter((className): boolean => !!className)
.join(' ');
}