Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 22 lines 539 B view raw
1import {simpleAreDatesEqual} from '#/lib/strings/time' 2import {device} from '#/storage' 3 4export function snooze() { 5 device.set(['lastNuxDialog'], new Date().toISOString()) 6} 7 8export function unsnooze() { 9 device.set(['lastNuxDialog'], undefined) 10} 11 12export function isSnoozed() { 13 const lastNuxDialog = device.get(['lastNuxDialog']) 14 if (!lastNuxDialog) return false 15 const last = new Date(lastNuxDialog) 16 const now = new Date() 17 // already snoozed today 18 if (simpleAreDatesEqual(last, now)) { 19 return true 20 } 21 return false 22}