import { Pressable, View } from "react-native"; import { AppText as Text } from "./AppText"; export function EmptyState(props: { readonly title: string; readonly detail: string; readonly actionLabel?: string; readonly onAction?: () => void; readonly variant?: "card" | "plain"; }) { if (props.variant === "plain") { return ( {props.title} {props.detail} {props.actionLabel && props.onAction ? ( {props.actionLabel} ) : null} ); } return ( {props.title} {props.detail} {props.actionLabel && props.onAction ? ( {props.actionLabel} ) : null} ); }