{showIcon && (
)}
{formattedVolume}
setDragging(true)}
onMouseUp={onInteractionEnd}
onKeyUp={onInteractionEnd}
onChange={onChange}
/>
);
});
Widget.displayName = "Sound";
/**
* Set the system volume.
* @param {number} volume - The volume to set.
*/
function setSound(volume) {
if (volume === undefined) return;
Uebersicht.run(`osascript -e 'set volume output volume ${volume}'`);
}