feat: create export to pdf and xlsx in detail rekapitulasi gangguan rating per posko

This commit is contained in:
kur0nek-o
2024-03-30 11:23:54 +07:00
parent 14a36b1013
commit e7883d54e9
3 changed files with 195 additions and 4 deletions

View File

@ -0,0 +1,5 @@
export const numberToStars = (rating: number) => {
const stars = rating ? Math.round(rating) : 0
return stars ? '*'.repeat(stars) : 'Tidak ada'
}