import type { ReactNode } from "react"; import { View } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { colors, gutter, radii, shadows } from "@/lib/theme"; /** * Bottom action bar. `floating` renders the dark pill used on product detail; * the default renders a flush surface bar used in cart and checkout. */ export function StickyBar({ children, floating, }: { children: ReactNode; floating?: boolean; }) { const insets = useSafeAreaInsets(); if (floating) { return ( {children} ); } return ( {children} ); }