9 lines
299 B
TypeScript
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(' ');
|
|
}
|