salat
Version:
Daily Moroccan prayers time, right in your console, at the tip of your fingers
11 lines (10 loc) • 561 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import CitySelect from "#components/CitySelect";
import { QueryProvider } from "#components/QueryProvider";
import App from "#components/TimesApp";
import { useState } from "react";
const TimesCommandWrapper = ({ initialCity, once, }) => {
const [city, setCity] = useState(initialCity);
return (_jsx(QueryProvider, { children: city ? (_jsx(App, { cityNameArg: city, once: once, onReset: () => setCity(undefined) })) : (_jsx(CitySelect, { onSelect: setCity })) }));
};
export default TimesCommandWrapper;