import { Settings } from "@/app/lib/settings" import { WHISPER_MODELS } from "@/app/lib/whisper" import { Picker } from "@react-native-picker/picker" import { useEffect, useState } from "react" import { Pressable, View } from "react-native" const WhisperDownloader = () => { const [whisperModel, setWhisperModel] = useState(); useEffect(() => { const settings = await Settings.getDefault(); setWhisperModel((await settings.getWhisperModel()) || "small"); }, []) return ( {Object.entries(WHISPER_MODELS).map(([key, { label }]) => ( ))} }