import React, { useState } from 'react'; import { View, Text, ScrollView, TouchableOpacity } from 'react-native'; import { RouteProp, useRoute, useNavigation } from '@react-navigation/native'; import { useTheme } from '@theme'; import { getStyles } from './leadTasks.styles'; import { LeadsStackParamList } from '../../navigation/leadsStack'; import { FormInput, FormPicker, ActionButton, CheckboxWithLabel } from '@components'; type LeadTasksRouteProp = RouteProp; export const LeadTasksScreen = () => { const route = useRoute(); const navigation = useNavigation(); const { theme: colors } = useTheme(); const styles = getStyles(colors); const leadId = route.params?.leadId; // Multiple checkboxes can be checked at the same time const billableOptions = [ { id: 'public', label: 'Public' }, { id: 'billable', label: 'Billable' }, ]; // Form state const [selectedBillable, setSelectedBillable] = useState(['billable']); const [attachment, setAttachment] = useState(''); const [subject, setSubject] = useState(''); const [hourlyRate, setHourlyRate] = useState(''); const [startDate, setStartDate] = useState(''); const [dueDate, setDueDate] = useState(''); const [priority, setPriority] = useState(''); const [repeatEvery, setRepeatEvery] = useState(''); const [relatedTo, setRelatedTo] = useState('lead'); const [lead, setLead] = useState(''); const [assignees, setAssignees] = useState(''); const [followers, setFollowers] = useState(''); const [taskDescription, setTaskDescription] = useState(''); const handleSave = () => { console.log('Save task pressed'); // TODO: Implement save logic }; return ( {/* Public or Billable */} {/* Attachment */} {/* Subject */} {/* Hourly Rate */} {/* Start Date and Due Date */} {/* Priority */} {/* Repeat every */} {/* Related To */} {/* Lead */} {/* Assignees */} {/* Followers */} {/* Task Description */} {/* Save Button */} ); };