mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-09 01:35:36 +02:00
initial
This commit is contained in:
commit
a08a51eea3
241 changed files with 23091 additions and 0 deletions
13
quartz/util/lang.ts
Normal file
13
quartz/util/lang.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
export function capitalize(s: string): string {
|
||||
return s.substring(0, 1).toUpperCase() + s.substring(1)
|
||||
}
|
||||
|
||||
export function classNames(
|
||||
displayClass?: "mobile-only" | "desktop-only",
|
||||
...classes: string[]
|
||||
): string {
|
||||
if (displayClass) {
|
||||
classes.push(displayClass)
|
||||
}
|
||||
return classes.join(" ")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue