This repository has been archived on 2026-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Gishen-Mob/components/care/EscalationBanner.tsx
kirukib d40cb22ff4 Finalize profile, prescription, and checkout with shared UI modules.
Add payment/notification prefs, assisted pharmacist codes, Rx status journey, and mock payment intents so demo flows match the storefront brief.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 14:53:34 +03:00

37 lines
954 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Ionicons } from "@expo/vector-icons";
import { View } from "react-native";
import { Text } from "@/components/ui/Text";
import { colors, radii } from "@/lib/theme";
export function EscalationBanner({
title = "Escalation active",
body = "If a dose isn’t confirmed in time, we’ll alert your emergency contact.",
}: {
title?: string;
body?: string;
}) {
return (
<View
style={{
flexDirection: "row",
gap: 10,
padding: 14,
borderRadius: radii.md,
backgroundColor: colors.warnSoft,
borderWidth: 1,
borderColor: "#F0D7A8",
}}
>
<Ionicons name="alert-circle" size={20} color={colors.warn} />
<View style={{ flex: 1 }}>
<Text variant="label" color={colors.warn}>
{title}
</Text>
<Text variant="caption" color={colors.muted} style={{ marginTop: 4 }}>
{body}
</Text>
</View>
</View>
);
}