/* * File: QuickActions.tsx * Description: Quick actions component providing common emergency actions * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */ import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet, ScrollView, } from 'react-native'; import { theme } from '../../../theme/theme'; interface QuickAction { id: string; title: string; icon: string; color: string; } interface QuickActionsProps { onQuickAction: (action: QuickAction) => void; } const quickActions: QuickAction[] = [ { id: 'emergency', title: 'Emergency', icon: '๐Ÿšจ', color: theme.colors.critical, }, { id: 'scan', title: 'Order Scan', icon: '๐Ÿ“ท', color: theme.colors.primary, }, { id: 'medication', title: 'Medication', icon: '๐Ÿ’Š', color: theme.colors.warning, }, { id: 'lab', title: 'Lab Work', icon: '๐Ÿงช', color: theme.colors.info, }, { id: 'consult', title: 'Consult', icon: '๐Ÿ‘จโ€โš•๏ธ', color: theme.colors.success, }, { id: 'transfer', title: 'Transfer', icon: '๐Ÿš‘', color: theme.colors.secondary, }, ]; export const QuickActions: React.FC = ({ onQuickAction, }) => { return ( Quick Actions {quickActions.map((action) => ( onQuickAction(action)} activeOpacity={0.7} > {action.icon} {action.title} ))} ); }; const styles = StyleSheet.create({ container: { marginBottom: theme.spacing.lg, }, title: { fontSize: theme.typography.fontSize.displaySmall, fontFamily: theme.typography.fontFamily.bold, color: theme.colors.textPrimary, marginBottom: theme.spacing.md, }, scrollContainer: { paddingRight: theme.spacing.md, }, actionButton: { alignItems: 'center', marginRight: theme.spacing.lg, minWidth: 80, }, iconContainer: { width: 60, height: 60, borderRadius: 30, justifyContent: 'center', alignItems: 'center', marginBottom: theme.spacing.sm, ...theme.shadows.small, }, icon: { fontSize: 24, }, actionTitle: { fontSize: theme.typography.fontSize.bodySmall, color: theme.colors.textPrimary, fontFamily: theme.typography.fontFamily.medium, textAlign: 'center', }, }); /* * End of File: QuickActions.tsx * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */