mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
# 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>
9 lines
386 B
TypeScript
9 lines
386 B
TypeScript
// 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 won’t respond to a live query because they may be shut down, asleep, or not connected to the internet.";
|
||
};
|
||
|
||
export default getHostStatusTooltipText;
|