import { ChevronLeft, ChevronRight } from "lucide-preact"; import { useState } from "preact/hooks"; export default () => { const [wttrDesc, setWttrDesc] = useState("Loading..."); fetch( `https://wttr.in/${localStorage.getItem("location") || ""}?format=%t%20with%20%C%c&m`, ) .then((res) => res.text()) .then((desc) => { setWttrDesc(desc.trim()); }); return ( <> ); };