refactor: lexical (#1954)
This commit is contained in:
13
packages/blocks-editor/src/Lexical/Utils/join-classes.ts
Normal file
13
packages/blocks-editor/src/Lexical/Utils/join-classes.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
export default function joinClasses(
|
||||
...args: Array<string | boolean | null | undefined>
|
||||
) {
|
||||
return args.filter(Boolean).join(' ');
|
||||
}
|
||||
Reference in New Issue
Block a user