Move into app/

This commit is contained in:
2025-10-07 13:52:57 +07:00
parent 6dd7d33661
commit 36f5508d48
95 changed files with 28 additions and 19 deletions
+10
View File
@@ -0,0 +1,10 @@
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/en'
dayjs.extend(relativeTime)
export const useRelativeDate = (date: string) => {
dayjs.locale('en')
return dayjs().to(dayjs(date))
}