mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
export const cleanClass = (...classNames: unknown[]) => {
|
|
return classNames
|
|
.filter((className) => {
|
|
if (!className || typeof className === 'boolean') {
|
|
return false;
|
|
}
|
|
|
|
return typeof className === 'string';
|
|
})
|
|
.join(' ');
|
|
};
|