import React, { useState } from "react"; import { View } from "react-native"; import { Select, Text } from "@jobber/components-native"; interface Option { value: string; label: string; } const UNITED_STATES = { value: "us", label: "United States" }; const COUNTRIES = [UNITED_STATES, { value: "ca", label: "Canada" }]; const REGIONS: Record = { us: [ { value: "california", label: "California" }, { value: "new-york", label: "New York" }, ], ca: [ { value: "alberta", label: "Alberta" }, { value: "ontario", label: "Ontario" }, ], }; /** Dependent options: changing country clears the controlled region value. */ export function SelectComposableDependentOptions() { const [country, setCountry] = useState