import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { SegmentControl, ReportPage, SketchAttributesCard, } from "@seasketch/geoprocessing/client-ui"; import Translator from "../components/TranslatorAsync.js"; import { SimpleCard } from "../components/SimpleCard.js"; const enableAllTabs = false; const BaseReport = () => { const { t } = useTranslation(); const segments = [{ id: "OVERVIEW", label: t("Overview") }]; const [tab, setTab] = useState("OVERVIEW"); return ( <>
setTab(segment)} segments={segments} />
); }; // Named export loaded by storybook export const TabReport = () => { return ( ); }; // Default export lazy-loaded by production ReportApp export default TabReport;