import { View, Text, StyleSheet, KeyboardAvoidingView, ScrollView } from 'react-native'; import { useEffect, useState } from 'react'; import { router } from 'expo-router'; import { Card } from '@/components/ui/Cards'; import { Input, TextArea } from '@/components/ui/Input'; import { Button } from '@/components/ui/Button'; import { Section, SectionHeader } from '@/components/ui/Sections'; import { Spacing, Typography, Colors, BorderRadius } from '@/constants/theme'; import { Ionicons, MaterialIcons } from '@expo/vector-icons'; import { useCreateSleepRecord } from '@/hooks'; import { CategoryChips, CategoryOption } from '@/components/ui/CategoryChips'; import { TriggerCategory } from '@/constants/triggers'; const TRIGGER_CATEGORIES: CategoryOption[] = [ { label: 'Trabalho', value: 'work', icon: }, { label: 'Social', value: 'social', icon: }, { label: 'Saúde', value: 'health', icon: }, { label: 'Família', value: 'family', icon: }, { label: 'Outros', value: 'other', icon: }, ]; export default function NewTrigger() { const [moment, setMoment] = useState(new Date()) const [comment, setComment] = useState(); const [category, setCategory] = useState('work'); const save = async () => { const data = { moment, comment, }; console.log("Trigger data: ", data) //await createSleepRecord.mutateAsync(data) router.replace("/") }; return ( Aconteceu algo? Registre acontecimentos fora do padrão Identificar gatilhos ajuda a entender melhor seus padrões emocionais