1
0
Fork 0
mirror of https://github.com/TheTaz25/denis.ergin.git synced 2025-07-08 19:58:47 +00:00

feat(knowledge-base): Rewrite Navigation, add utils, initial page for knowledge-base

This commit is contained in:
Denis Ergin 2024-10-18 11:51:16 +02:00
parent 20d548bec6
commit d207c35805
11 changed files with 283 additions and 58 deletions

7
src/utils/classes.ts Normal file
View file

@ -0,0 +1,7 @@
export const clx = (c: Record<string, boolean>, additional?: string) => {
const converted = Object.entries(c).map(([key, value]) => value ? key : null).filter((key) => !!key).join(' ');
if (additional) {
return `${converted} ${additional}`;
}
return converted;
}