Announce current song (#470)

Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
Thongrapee Panyapatiphan 2022-01-22 01:50:57 +07:00 committed by GitHub
parent da72cd708b
commit 59cbc8b474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 317 additions and 190 deletions

2
src/utils/string.ts Normal file
View file

@ -0,0 +1,2 @@
export const truncate = (text: string, maxLength = 50) =>
text.length > maxLength ? `${text.slice(0, maxLength - 3)}...` : text;