/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React, { ChangeEvent } from "react"; import { EuiFormRow, EuiSelect, EuiButton, EuiFlexGroup, EuiFlexItem } from "@elastic/eui"; import "brace/theme/github"; import "brace/mode/json"; import { FeatureChannelList } from "../../../../../server/models/interfaces"; import CustomLabel from "../../../../components/CustomLabel"; interface NotificationProps { channelId: string; channels: FeatureChannelList[]; loadingChannels: boolean; onChangeChannelId: (value: ChangeEvent) => void; getChannels: () => void; } const Notification = ({ channelId, channels, loadingChannels, onChangeChannelId, getChannels }: NotificationProps) => { return ( <> ({ value: channel.config_id, text: channel.name }))} value={channelId} onChange={onChangeChannelId} data-test-subj="create-policy-notification-channel-id" /> Manage channels ); }; export default Notification;