Move some files around to where they should be

This commit is contained in:
2026-02-14 12:49:57 -07:00
parent 105913503c
commit 70433b76ab
18 changed files with 21 additions and 21 deletions

17
src/lib/Notifications.ts Normal file
View File

@@ -0,0 +1,17 @@
import {
isPermissionGranted,
requestPermission,
sendNotification
} from '@tauri-apps/plugin-notification'
export async function notifyUser (title: string, body: string) {
let permissionGranted = await isPermissionGranted()
if (!permissionGranted) {
const permission = await requestPermission()
permissionGranted = permission === 'granted'
}
if (permissionGranted) {
sendNotification({ title, body })
}
}