Notification summary

This commit is contained in:
2023-10-09 14:35:21 +01:00
parent 237ce498b7
commit b27bb47007
23 changed files with 710 additions and 60 deletions

View File

@ -328,6 +328,10 @@ export function orderDescending<T>(arr: Array<T & { created_at: number }>) {
return arr.sort((a, b) => (b.created_at > a.created_at ? 1 : -1));
}
export function orderAscending<T>(arr: Array<T & { created_at: number }>) {
return arr.sort((a, b) => (b.created_at > a.created_at ? -1 : 1));
}
export interface Magnet {
dn?: string | string[];
tr?: string | string[];