import { FC } from "react"; import { Section, Flex, Title, ActionTable } from "@siteground/styleguide"; import { translate } from "i18n-calypso"; import { ColumnType } from "@siteground/styleguide/lib/components/table/table-body/types"; import { ActivityLogResponse } from "@/store/api/wp-api"; import { TablePagination } from "./table-pagination"; import { RenderIf } from "@/shared/components/render-if/render-if"; interface Props { activityLog: ActivityLogResponse; columns: ColumnType[]; onPageChange: (page: number) => void; } const ActivityLog: FC = ({ activityLog, columns, onPageChange }) => { const { entries, total, page, per_page, total_pages } = activityLog || {}; return (
{translate("Activity Log")} ( per_page}> )} />
); }; export default ActivityLog;