/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { EuiFormRow, EuiCallOut, EuiButton, EuiSpacer } from "@elastic/eui"; import "brace/theme/github"; import "brace/mode/json"; import { DarkModeConsumer } from "../../components/DarkMode"; import JSONEditor from "../../components/JSONEditor"; interface LegacyNotificationProps { value: Record; onChange: (val: LegacyNotificationProps["value"]) => void; onSwitchToChannels: () => void; actionNotification?: boolean; } const LegacyNotification = ({ value, onChange, onSwitchToChannels }: LegacyNotificationProps) => { return ( <>

Using Channel ID will give you more control to manage notifications across OpenSearch dashboards. If you do decide to switch, you will lose your current error notification settings.

Switch to using Channel ID
{(isDarkMode) => ( onChange(JSON.parse(val))} setOptions={{ fontSize: "14px" }} aria-label="Code Editor" height="300px" /> )} ); }; export default LegacyNotification;