mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
bbaa225c0e
# 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>
10 lines
386 B
TypeScript
10 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;
|