You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/frontend/src/components/views/HistoryView.tsx

36 lines
827 B

import { UsePaginationQueryResult } from "@/apis/queries/hooks";
import { Container, Row } from "react-bootstrap";
import { Helmet } from "react-helmet";
import { Column } from "react-table";
import { QueryPageTable } from "..";
interface Props<T extends History.Base> {
name: string;
query: UsePaginationQueryResult<T>;
columns: Column<T>[];
}
function HistoryView<T extends History.Base = History.Base>({
columns,
name,
query,
}: Props<T>) {
return (
<Container fluid>
<Helmet>
<title>{name} History - Bazarr</title>
</Helmet>
<Row>
<QueryPageTable
emptyText={`Nothing Found in ${name} History`}
columns={columns}
query={query}
data={[]}
></QueryPageTable>
</Row>
</Container>
);
}
export default HistoryView;