import React from "react"; import { View, Pressable, useColorScheme } from "react-native"; import { Text } from "@/components/ui/text"; interface EmptyStateProps { title: string; description?: string; hint?: string; actionLabel?: string; onActionPress?: () => void; previewLines?: number; } export function EmptyState({ title, description, hint, actionLabel, onActionPress, previewLines = 3, }: EmptyStateProps) { const scheme = useColorScheme(); const isDark = scheme === "dark"; const dashColor = isDark ? "rgba(255,255,255,0.18)" : "rgba(0,0,0,0.14)"; const lineFill = isDark ? "rgba(255,255,255,0.10)" : "rgba(0,0,0,0.08)"; return ( {title} {!!description && ( {description} )} {Array.from({ length: Math.max(1, previewLines) }).map((_, idx) => ( ))} {!!hint && ( {hint} )} {!!actionLabel && !!onActionPress && ( {actionLabel} )} ); }