The last time software data was
updated, including vulnerabilities
and host counts.
>
}
/>
)}
>
);
};
const renderTableHelpText = () => {
return (
Seeing unexpected software or vulnerabilities?{" "}
);
};
const handlePlatformFilterDropdownChange = (platformSelected: string) => {
router?.replace(
getNextLocationPath({
pathPrefix: PATHS.SOFTWARE_OS,
queryParams: {
team_id: teamId,
order_direction: orderDirection,
order_key: orderKey,
page: 0,
platform: platformSelected,
},
})
);
};
const renderPlatformDropdown = () => {
return (
);
};
return (
(
)}
defaultSortHeader={orderKey}
defaultSortDirection={orderDirection}
defaultPageIndex={currentPage}
manualSortBy
pageSize={perPage}
showMarkAllPages={false}
isAllPagesSelected={false}
customControl={showFilterHeaders ? renderPlatformDropdown : undefined}
disableNextPage={!data?.meta.has_next_results}
searchable={false}
onQueryChange={onQueryChange}
renderCount={renderSoftwareCount}
renderTableHelpText={renderTableHelpText}
disableMultiRowSelect
onSelectSingleRow={handleRowSelect}
resetPageIndex={resetPageIndex}
/>
);
};
export default SoftwareOSTable;