import type { ReactNode, Ref } from 'react'; import { ScrollView, TextInput, View, type TextInputProps } from 'react-native'; import { Text } from '@/components/text'; import Svg, { Path } from 'react-native-svg'; import { Skel } from '@/components/ui'; import { useSky } from '@/lib/sky'; /** 웹의 연한 판(#f3f6fb)·입력칸·따뜻한 판(#fff4ec)을 밤엔 어두운 판으로 */ export function useSoft() { const night = useSky().kind === 'night'; return { soft: night ? '#2b3470' : '#f3f6fb', field: night ? '#2b3470' : '#f7f9fc', fieldBorder: night ? 'rgba(255,255,255,0.12)' : '#dfe5ee', warm: night ? 'rgba(255,138,87,0.16)' : '#fff4ec', bar: night ? 'rgba(255,255,255,0.12)' : '#e3eaf4', placeholder: night ? '#a1a9db' : '#8a92aa', }; } export function Body({ children, className }: { children: ReactNode; className?: string }) { return ( {children} ); } /** 입력칸: 둥근 연한 판 */ export function Field({ round = false, style, ...props }: TextInputProps & { round?: boolean; ref?: Ref }) { const s = useSoft(); return ( ); } export function HeartIcon({ size, fill, stroke }: { size: number; fill: string; stroke: string }) { return ( ); } const N3 = [0, 1, 2]; /** 읽을거리·이번 주 특집: 그림 150px · 머리말 · 제목 · 본문 */ export function ArticleSkel() { return ( {N3.map((k) => ( ))} ); } /** 빨간 안내 한 줄 (자리 높이는 그대로) */ export function ErrorLine({ text, className }: { text?: string; className?: string }) { return {text ?? ''}; }