/** * Dringlichkeits-Ampel als gut sichtbares Banner. * Farbe + Icon + Text — nicht nur Farbe (Barrierefreiheit: Farbenblindheit). */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { AmpelStatus } from '../utils/ampel'; import { abstand, schrift, schriftart, ecke } from '../theme'; import { Ikone, IkonenName } from './Ikone'; const IKONE: Record = { rot: 'warnung', gelb: 'wecker', gruen: 'info' }; export function Ampel({ status }: { status: AmpelStatus }) { return ( {status.text} ); } const styles = StyleSheet.create({ banner: { flexDirection: 'row', alignItems: 'center', borderLeftWidth: 6, borderRadius: ecke, padding: abstand.m, gap: abstand.s, }, text: { fontFamily: schriftart.serif, flex: 1, fontSize: schrift.gross, fontWeight: '700' }, });