2022-03-16 06:26:15 +00:00
|
|
|
import { UsePaginationQueryResult } from "@/apis/queries/hooks";
|
2022-01-22 13:35:11 +00:00
|
|
|
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;
|