import { jsxs as o, jsx as t } from "react/jsx-runtime";
import { useState as s } from "react";
import { y as i, k as l, z as m } from "./index-_1f6rhg6.js";
function h() {
  const { t: a } = i(), n = "metric", [e, c] = s("");
  return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
    /* @__PURE__ */ t(
      l,
      {
        placeholder: "San Francisco",
        value: e,
        name: "Enter City",
        onChange: async (r) => {
          c(r.target.value);
        }
      }
    ),
    /* @__PURE__ */ t(
      m,
      {
        href: `webcal://weather-in-calendar.com/cal/weather-cal.php?city=${e}&units=${n}&temperature=day`,
        children: a("add_to_calendar")
      }
    )
  ] });
}
export {
  h as default
};
