Tomoya Matsuura(MacBookPro)
312a2330c3
All checks were successful
Build / build (push) Successful in 2m11s
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(" ")
|
|
}
|