The last time software data was
updated, including vulnerabilities
and host counts.
>
}
/>
)}
>
);
};
const renderTableFooter = () => {
return (
Seeing unexpected software or vulnerabilities?{" "}
);
};
const getExploitedVulnerabiltiesDropdownOptions = () => {
const disabledTooltipContent = "Available in Fleet Premium.";
return [
{
disabled: false,
label: "All vulnerabilities",
value: false,
helpText: "All vulnerabilities detected on your hosts.",
},
{
disabled: !isPremiumTier,
label: "Exploited vulnerabilities",
value: true,
helpText:
"Vulnerabilities that have been actively exploited in the wild.",
tooltipContent: !isPremiumTier && disabledTooltipContent,
},
];
};
// Exploited vulnerabilities is a premium feature
const renderExploitedVulnerabilitiesDropdown = () => {
return (
);
};
return (
(
)}
defaultSortHeader={orderKey}
defaultSortDirection={orderDirection}
defaultPageIndex={currentPage}
manualSortBy
pageSize={perPage}
showMarkAllPages={false}
isAllPagesSelected={false}
disableNextPage={!data?.meta.has_next_results}
searchable={searchable}
searchQueryColumn="vulnerability"
inputPlaceHolder="Search by CVE"
onQueryChange={onQueryChange}
customControl={
searchable ? renderExploitedVulnerabilitiesDropdown : undefined
}
renderCount={renderVulnerabilityCount}
renderFooter={renderTableFooter}
disableMultiRowSelect
onSelectSingleRow={handleRowSelect}
resetPageIndex={resetPageIndex}
/>
);
};
export default SoftwareVulnerabilitiesTable;