feat: Add current Writing Streak to Daily Notebooks (#2093)

This commit is contained in:
Mo
2022-12-08 11:11:13 -06:00
committed by GitHub
parent ad70bea368
commit d149b500ee
8 changed files with 62 additions and 7 deletions

View File

@@ -687,3 +687,7 @@ export function useBoolean(value: boolean | undefined, defaultValue: boolean): b
export function spaceSeparatedStrings(...strings: string[]): string {
return strings.join(' ')
}
export function pluralize(count: number, singular: string, plural: string): string {
return count === 1 ? singular : plural
}