import { router } from "expo-router"; import { View } from "react-native"; import { Button } from "@/components/ui/Button"; import { Card } from "@/components/ui/Card"; import { Text } from "@/components/ui/Text"; import { routes } from "@/lib/routes"; import { colors } from "@/lib/theme"; export function RxCartGate({ rxItemNames, }: { rxItemNames: string[]; }) { if (!rxItemNames.length) return null; return ( Prescription required These items need an approved or submitted Rx before checkout:{" "} {rxItemNames.slice(0, 3).join(", ")} {rxItemNames.length > 3 ? ` +${rxItemNames.length - 3} more` : ""}.