feat: montly songs

This commit is contained in:
2026-01-13 12:01:28 +01:00
parent 671bfe8a73
commit 29c19bb34a
2 changed files with 72 additions and 59 deletions
+9
View File
@@ -0,0 +1,9 @@
export const buildMonthKey = (date = new Date()) => {
const target = date instanceof Date ? new Date(date) : new Date()
const year = target.getFullYear()
const month = String(target.getMonth() + 1).padStart(2, '0')
return `${year}-${month}`
}
export default buildMonthKey