recognize reactions

This commit is contained in:
Jon Staab
2024-08-23 14:42:50 -07:00
parent f12e7ef77c
commit 6722bd8493
8 changed files with 73 additions and 20 deletions
+9
View File
@@ -33,6 +33,7 @@ export const synced = <T>(key: string, defaultValue: T, delay = 300) => {
}
export type SearchOptions<V, T> = {
getValue: (item: T) => V
fuseOptions?: IFuseOptions<T>
sortFn?: (items: FuseResult<T>) => any
@@ -95,3 +96,11 @@ export const formatTimestampAsDate = (ts: number) => {
return formatter.format(secondsToDate(ts))
}
export const formatTimestampAsTime = (ts: number) => {
const formatter = new Intl.DateTimeFormat(getLocale(), {
timeStyle: "short",
})
return formatter.format(secondsToDate(ts))
}