fleet/frontend/pages/hosts/helpers.ts
Jacob Shandling bbaa225c0e
Refactor macOS settings items (#10019)
# Implements

Encapsulates the specific logic for determining different UI elements
for displaying the status of mac settings in the HostSummary and
MacSettingsTable.

# Checklist for submitter
- [x] Added/updated tests

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-02-22 16:35:26 -08:00

10 lines
386 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// eslint-disable-next-line import/prefer-default-export
const getHostStatusTooltipText = (status: string): string => {
if (status === "online") {
return "Online hosts will respond to a live query.";
}
return "Offline hosts wont respond to a live query because they may be shut down, asleep, or not connected to the internet.";
};
export default getHostStatusTooltipText;