mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
36e4cc41a9
* checkpoint * finish * docs
13 lines
307 B
TypeScript
13 lines
307 B
TypeScript
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(" ")
|
|
}
|