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:
parent
20d548bec6
commit
d207c35805
11 changed files with 283 additions and 58 deletions
7
src/utils/classes.ts
Normal file
7
src/utils/classes.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue