init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
export const truncateText = (text, maxLength = 500) => {
if (text.length > maxLength) {
return text.substring(0, maxLength) + "...";
}
return text;
};