import { Button, Loadable, PageLoader, Text } from "@allurereport/web-components"; import { useEffect } from "preact/hooks"; import type { ClassicStatus } from "types"; import Tree from "@/components/Tree/Tree"; import { useI18n } from "@/stores/locale"; import { currentTab } from "@/stores/tabs"; import { clearTreeFilters, filteredTree, noTests, noTestsFound, setTreeStatus, treeStore } from "@/stores/tree"; import * as styles from "./styles.scss"; export const TreeList = () => { const { t } = useI18n("empty"); useEffect(() => { setTreeStatus(currentTab.value as ClassicStatus); // oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps }, [currentTab.value]); return ( } renderData={() => { if (noTests.value) { return (
{t("no-results")}
); } if (noTestsFound.value) { return (
{t("no-tests-found")}
); } return (
); }} /> ); };