feat: Implement video management with a data table and comprehensive plan and subscription management features.

This commit is contained in:
2026-02-05 18:38:10 +07:00
parent c3a8e5b474
commit 27a765044d
15 changed files with 426 additions and 886 deletions

View File

@@ -82,11 +82,16 @@ export const formatDate = (dateString?: string) => {
});
};
export const getStatusClass = (status?: string) => {
switch (status?.toLowerCase()) {
case 'ready': return 'bg-green-100 text-green-700';
case 'processing': return 'bg-yellow-100 text-yellow-700';
case 'failed': return 'bg-red-100 text-red-700';
default: return 'bg-gray-100 text-gray-700';
export const getStatusSeverity = (status: string = "") => {
switch (status) {
case 'success':
case 'ready':
return 'success';
case 'failed':
return 'danger';
case 'pending':
return 'warn';
default:
return 'info';
}
};
};