import { IconSearch } from "@tabler/icons-react"; import Alert from "react-bootstrap/Alert"; import { LoadingPage } from "src/components"; import { useCertificates } from "src/hooks"; import { intl } from "src/locale"; import Table from "./Table"; export default function TableWrapper() { const { isFetching, isLoading, isError, error, data } = useCertificates([ "owner", "dead_hosts", "proxy_hosts", "redirection_hosts", ]); if (isLoading) { return ; } if (isError) { return {error?.message || "Unknown error"}; } return (

{intl.formatMessage({ id: "certificates.title" })}

); }