porridger/front/src/utils/dispose.ts
dm1sh b93ab9794d
Added announcement disposal:
Added ann details button
Added modal shown on its click
Moved trashbox selection there
Added trashboxes mock while testing in restricted area
2023-08-01 18:23:56 +03:00

10 lines
206 B
TypeScript

import { Announcement } from '../api/announcement/types'
const DAY_MS = 24 * 60 * 60 * 1000
const isAnnExpired = (ann: Announcement) => (
(ann.bestBy - Date.now()) < DAY_MS
)
export { isAnnExpired }