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/pages/views/HistoryView.tsx

31 lines
781 B

import { UsePaginationQueryResult } from "@/apis/queries/hooks";
import { QueryPageTable } from "@/components";
import { Container } from "@mantine/core";
import { useDocumentTitle } from "@mantine/hooks";
import { Column } from "react-table";
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>) {
useDocumentTitle(`${name} History - Bazarr`);
return (
<Container fluid px={0}>
<QueryPageTable
tableStyles={{ emptyText: `Nothing Found in ${name} History` }}
columns={columns}
query={query}
></QueryPageTable>
</Container>
);
}
export default HistoryView;