got frontend working with backend project

This commit is contained in:
2024-11-27 00:35:32 -05:00
parent 66ba89c0b1
commit 0093589a4b
11 changed files with 250 additions and 63 deletions

3
frontend/lib/truncate.ts Normal file
View File

@ -0,0 +1,3 @@
export const truncateString = (str: string, maxLength: number) => {
return str.length > maxLength ? `${str.slice(0, maxLength)}...` : str;
};