+): JSX.Element {
+ return (
+
+ )
+}
diff --git a/src/lib/ui/device/NoiseLevelStatus.tsx b/src/lib/ui/device/NoiseLevelStatus.tsx
index 75f7c3d1f..f2fe8ea19 100644
--- a/src/lib/ui/device/NoiseLevelStatus.tsx
+++ b/src/lib/ui/device/NoiseLevelStatus.tsx
@@ -1,6 +1,8 @@
+import classNames from 'classnames'
import type { NoiseSensorDevice } from 'seamapi'
import { NoiseLevelsIcon } from 'lib/icons/NoiseLevels.js'
+import { NoiseLevelsRedIcon } from 'lib/icons/NoiseLevelsRed.js'
interface NoiseLevelStatusProps {
device: NoiseSensorDevice
@@ -9,13 +11,22 @@ interface NoiseLevelStatusProps {
export function NoiseLevelStatus({
device,
}: NoiseLevelStatusProps): JSX.Element {
+ const isActivated =
+ (device?.properties?.currently_triggering_noise_threshold_ids ?? [])
+ ?.length > 0
+
return (
<>
{t.noiseLevel}:
-
- {getNoiseLevel(device)}
+ {isActivated ? : }
+
+ {getNoiseLevel(device)}
+ {isActivated && ` (${t.noisy})`}
+
>
)
@@ -55,4 +66,5 @@ const t = {
unknown: 'Unknown',
decibel: 'dB',
noiseAwareDefault: '0-40 dB',
+ noisy: 'noisy',
}