/* * File: DashboardHeader.tsx * Description: Dashboard header component displaying ER department overview and statistics * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */ import React from 'react'; import { View, Text, StyleSheet, } from 'react-native'; import { theme } from '../../../theme/theme'; import { ERDashboard } from '../../../shared/types/dashboard'; interface DashboardHeaderProps { dashboard: ERDashboard; } export const DashboardHeader: React.FC = ({ dashboard, }) => { return ( Emergency Department {dashboard.shiftInfo.currentShift} Shift • {dashboard.shiftInfo.attendingPhysician} {dashboard.totalPatients} Total Patients {dashboard.criticalPatients} Critical {dashboard.pendingScans} Pending Scans {dashboard.bedOccupancy}% Bed Occupancy Last updated: {dashboard.lastUpdated.toLocaleTimeString()} ); }; const styles = StyleSheet.create({ container: { backgroundColor: theme.colors.background, borderRadius: theme.borderRadius.large, padding: theme.spacing.lg, marginBottom: theme.spacing.lg, ...theme.shadows.medium, }, header: { marginBottom: theme.spacing.lg, }, title: { fontSize: theme.typography.fontSize.displayMedium, fontFamily: theme.typography.fontFamily.bold, color: theme.colors.textPrimary, marginBottom: theme.spacing.xs, }, subtitle: { fontSize: theme.typography.fontSize.bodyMedium, color: theme.colors.textSecondary, }, statsContainer: { flexDirection: 'row', justifyContent: 'space-between', marginBottom: theme.spacing.lg, }, statItem: { alignItems: 'center', flex: 1, }, statValue: { fontSize: theme.typography.fontSize.displaySmall, fontFamily: theme.typography.fontFamily.bold, color: theme.colors.primary, marginBottom: theme.spacing.xs, }, criticalValue: { color: theme.colors.critical, }, statLabel: { fontSize: theme.typography.fontSize.bodySmall, color: theme.colors.textSecondary, textAlign: 'center', }, lastUpdated: { alignItems: 'center', }, lastUpdatedText: { fontSize: theme.typography.fontSize.caption, color: theme.colors.textMuted, }, }); /* * End of File: DashboardHeader.tsx * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */