import { View, Text, StyleSheet, ScrollView, Pressable } from 'react-native'; import { useJobStore } from '@/stores/jobs'; export default function TranscriptsScreen() { const { jobs } = useJobStore(); const completedJobs = jobs.filter((j) => j.status === 'completed'); return ( {completedJobs.length === 0 ? ( No transcripts yet Start a new transcription to see results here ) : ( {completedJobs.map((job) => ( {job.videoInfo?.title || 'Untitled'} {job.videoInfo?.channel || 'Unknown channel'} {new Date(job.completedAt || '').toLocaleDateString()} ))} )} ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#f9fafb', }, empty: { flex: 1, padding: 32, alignItems: 'center', justifyContent: 'center', }, emptyText: { fontSize: 18, fontWeight: '600', color: '#6b7280', }, emptyHint: { fontSize: 14, color: '#9ca3af', marginTop: 8, textAlign: 'center', }, list: { padding: 16, }, card: { backgroundColor: '#fff', padding: 16, borderRadius: 12, marginBottom: 12, shadowColor: '#000', shadowOffset: { width: 0, height: 1 }, shadowOpacity: 0.1, shadowRadius: 2, elevation: 2, }, cardTitle: { fontSize: 16, fontWeight: '600', color: '#1f2937', }, cardSubtitle: { fontSize: 14, color: '#6b7280', marginTop: 4, }, cardDate: { fontSize: 12, color: '#9ca3af', marginTop: 8, }, });