ADD MyClips page and VideoCard component

This commit is contained in:
2025-07-09 18:39:40 +02:00
parent c512f055ee
commit 130938c56a
5 changed files with 75 additions and 14 deletions

View File

@@ -0,0 +1,17 @@
function formatTime(seconds: number): string {
const h = Math.floor(seconds / 3600);
const m = Math.floor((seconds % 3600) / 60);
const s = Math.floor(seconds % 60);
const padded = (n: number) => n.toString().padStart(2, '0');
if (h > 0) {
return `${h}:${padded(m)}:${padded(s)}`;
} else {
return `${m}:${padded(s)}`;
}
}
export {
formatTime
}