import { useTranslation } from 'react-i18next'; interface Alert { type: 'warning' | 'error' | 'info'; message: string; } interface SpoolBuddyStatusBarProps { alert?: Alert | null; } export function SpoolBuddyStatusBar({ alert }: SpoolBuddyStatusBarProps) { const { t } = useTranslation(); const statusColor = !alert ? 'bg-bambu-green' : alert.type === 'error' ? 'bg-red-500' : alert.type === 'warning' ? 'bg-amber-500' : 'bg-bambu-green'; const borderColor = !alert ? 'border-bambu-dark-tertiary' : alert.type === 'error' ? 'border-red-500' : alert.type === 'warning' ? 'border-amber-500' : 'border-bambu-dark-tertiary'; return (
{/* Status LED */}
{/* Status message */}
{alert ? ( {alert.message} ) : ( {t('spoolbuddy.status.systemReady', 'System Ready')} )}
); }