/** * Empty state: one concise explanation, one primary recovery action. */ import { StyleSheet, View } from "react-native"; import { useTheme } from "../../theme/ThemeProvider"; import { radius, space } from "../../theme/tokens"; import { Text } from "./Text"; import { Touchable } from "./Touchable"; interface Props { message: string; actionLabel?: string; onAction?: () => void; } export function EmptyState({ message, actionLabel, onAction }: Props) { const { colors } = useTheme(); return ( {message} {actionLabel && onAction ? ( {actionLabel} ) : null} ); } const styles = StyleSheet.create({ wrap: { alignItems: "center", paddingVertical: space.xxl, gap: space.lg, paddingHorizontal: space.gutter }, message: { textAlign: "center" }, action: { borderRadius: radius.row, paddingHorizontal: space.xl }, actionLabel: { paddingVertical: 12 }, });