init commit,
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export const truncateText = (text, maxLength = 500) => {
|
||||
if (text.length > maxLength) {
|
||||
return text.substring(0, maxLength) + "...";
|
||||
}
|
||||
return text;
|
||||
};
|
Reference in New Issue
Block a user