import React from "react"; import { Trans, useTranslation } from "react-i18next"; import { ResultsCard, Skeleton } from "@seasketch/geoprocessing/client-ui"; // Import the results type definition from your functions to type-check your // component render functions import { AreaResults } from "../functions/area"; import Translator from "../components/TranslatorAsync"; const Number = new Intl.NumberFormat("en", { style: "decimal" }); /** * SizeCard component */ export const SizeCard = () => { const { t } = useTranslation(); return ( <> {(data: AreaResults) => (

📐 This sketch is{" "} {{ area: Number.format(Math.round(data.area * 1e-6)) }}{" "} square kilometers

)}
); }; /** * SizeCard as a top-level report client */ export const SizeCardReportClient = () => { return ( ); };