import { View, Text, TouchableOpacity, Picker } from "react-native-ui-lib"; import React, { useEffect, useState } from "react"; import {DAYS_OF_WEEK_ENUM} from "@/hooks/firebase/types/todoData"; const RepeatFreq = ({ repeatDays, handleRepeatDaysChange }: { repeatDays: string[], handleRepeatDaysChange: Function }) => { const [weeks, setWeeks] = useState(1); const weekOptions: number[] = Array.from({ length: 52 }, (_, i) => i + 1); useEffect(() => {}, [weeks]); return ( ); }; export default RepeatFreq; const RepeatOption = ({ value, handleRepeatDaysChange, repeatDays }: { value: string, handleRepeatDaysChange: Function, repeatDays: string[] }) => { const [isSet, setisSet] = useState(repeatDays.includes(value)); const handleDayChange = () => { handleRepeatDaysChange(value, !isSet) setisSet(!isSet); } return ( {value.at(0)} ); };