import { useState } from 'preact/hooks'; import { ChevronLeft, ChevronRight } from 'lucide-preact'; 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 ( <> ) }