import Input from 'sentry/components/input'; import {t} from 'sentry/locale'; import {Action, ActionType, TargetType} from 'sentry/views/alerts/rules/metric/types'; type Props = { action: Action; disabled: boolean; onChange: (value: string) => void; }; function ActionSpecificTargetSelector({action, disabled, onChange}: Props) { const handleChangeSpecificTargetIdentifier = ( e: React.ChangeEvent ) => { onChange(e.target.value); }; if (action.targetType !== TargetType.SPECIFIC || action.type !== ActionType.SLACK) { return null; } return ( ); } export default ActionSpecificTargetSelector;