import { View, Text, TouchableOpacity, StyleSheet } from "react-native" import { Ionicons } from "@expo/vector-icons" interface Props { permission: { id: string; permission: string; patterns: string[] } isDark: boolean onReply: (reply: "once" | "always" | "reject") => void } export function PermissionPrompt({ permission, isDark, onReply }: Props) { return ( Permission Required {permission.permission}: {permission.patterns.join(", ")} onReply("reject")}> Deny onReply("always")}> Always onReply("once")}> Allow ) } const s = StyleSheet.create({ card: { margin: 12, padding: 16, backgroundColor: "#fffbeb", borderRadius: 12, borderWidth: 1, borderColor: "#fef3c7", }, cardDark: { backgroundColor: "#1a1800", borderColor: "#333300" }, header: { flexDirection: "row", alignItems: "center", gap: 8, marginBottom: 8 }, title: { fontSize: 15, fontWeight: "600", color: "#92400e" }, textWhite: { color: "#ffffff" }, type: { fontSize: 13, color: "#78350f", marginBottom: 12 }, typeDark: { color: "#d4a574" }, actions: { flexDirection: "row", gap: 8 }, btn: { flex: 1, paddingVertical: 10, borderRadius: 8, alignItems: "center" }, deny: { backgroundColor: "#fef2f2" }, denyText: { color: "#dc2626", fontWeight: "600", fontSize: 14 }, always: { backgroundColor: "#f5f5f5" }, alwaysDark: { backgroundColor: "#2a2a2a" }, alwaysText: { color: "#0a0a0a", fontWeight: "600", fontSize: 14 }, allow: { backgroundColor: "#0a0a0a" }, allowDark: { backgroundColor: "#ffffff" }, allowText: { color: "#ffffff", fontWeight: "600", fontSize: 14 }, allowTextDark: { color: "#0a0a0a" }, })