feat: quiz submission history table

This commit is contained in:
Jannat Patel
2024-01-02 11:00:12 +05:30
parent 41c3522285
commit 21959eef7b
2 changed files with 40 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import { toast } from 'frappe-ui'
import { useDateFormat, useTimeAgo } from '@vueuse/core'
export function createToast(options) {
toast({
@@ -6,3 +7,7 @@ export function createToast(options) {
...options,
})
}
export function timeAgo(date) {
return useTimeAgo(date).value
}