36e4cc41a9
* checkpoint * finish * docs
14 lines
307 B
TypeScript
14 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(" ")
|
|
}
|