import { Ionicons } from '@expo/vector-icons'; import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native'; import { AppText } from './app-text'; import { colors, radius, spacing } from './tokens'; type Props = { timeRange: string; isNow?: boolean; style?: StyleProp; }; /** A quiet timeline block for a configured recess or lunch period. */ export function RecessCard({ timeRange, isNow = false, style }: Props) { return Recess {isNow ? Now : null} Time to recharge {timeRange} ; } const styles = StyleSheet.create({ card: { minHeight: 96, flexDirection: 'row', alignItems: 'center', gap: spacing[4], borderRadius: radius.feature, padding: spacing[5], backgroundColor: colors.neutral.surfaceSubtle, borderWidth: 1, borderColor: colors.neutral.divider }, icon: { width: 40, height: 40, borderRadius: radius.control, alignItems: 'center', justifyContent: 'center', backgroundColor: colors.neutral.surface }, copy: { flex: 1 }, heading: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', gap: spacing[3] }, now: { borderRadius: radius.pill, backgroundColor: colors.brand.coral, paddingHorizontal: spacing[3], paddingVertical: 3 }, range: { marginTop: spacing[2], fontVariant: ['tabular-nums'] }, });