+ {notification.indicator} |
+
+ handleToggleChange(e, notification.id, "alert")}
+ sx={{
+ "& .chakra-switch__track": {
+ backgroundColor: "gray.300",
+ _checked: {
+ backgroundColor: "#91e05e",
+ },
+ },
+ "& .chakra-switch__thumb": {
+ backgroundColor: "white",
+ _checked: {
+ backgroundColor: "white",
+ },
+ },
+ }}
+ />
+ |
+
+
+ |
+
+
+ }
+ onClick={() => handleArrowChange("decrease")}
+ size="sm"
+ variant="ghost"
+ aria-label="Decrease threshold"
+ />
+
+ }
+ onClick={() => handleArrowChange("increase")}
+ size="sm"
+ variant="ghost"
+ aria-label="Increase threshold"
+ />
+
+ |
+
+ handleToggleChange(e, notification.id, "anomalyDetectionAlert")}
+ sx={{
+ "& .chakra-switch__track": {
+ backgroundColor: "gray.300",
+ _checked: {
+ backgroundColor: "#91e05e",
+ },
+ },
+ "& .chakra-switch__thumb": {
+ backgroundColor: "white",
+ _checked: {
+ backgroundColor: "white",
+ },
+ },
+ }}
+ />
+ |
+
+ handleCheckboxChange(e, "email", notification.id)}
+ size="lg"
+ sx={{
+ "& .chakra-checkbox__control": {
+ backgroundColor: "transparent",
+ borderColor: "gray.400",
+ borderRadius: "50%",
+ width: "30px",
+ height: "30px",
+ },
+ "& .chakra-checkbox__control[data-checked='true']": {
+ backgroundColor: "#91e05e",
+ borderColor: "#91e05e",
+ },
+ }}
+ />
+ |
+
+ handleCheckboxChange(e, "platform", notification.id)}
+ size="lg"
+ sx={{
+ "& .chakra-checkbox__control": {
+ backgroundColor: "transparent",
+ borderColor: "gray.400",
+ borderRadius: "50%",
+ width: "30px",
+ height: "30px",
+ },
+ "& .chakra-checkbox__control[data-checked='true']": {
+ backgroundColor: "#91e05e",
+ borderColor: "#91e05e",
+ },
+ }}
+ />
+ |
+
+ ))}
+