import React, { useState } from 'react'; import { Box, FormControlLabel, Grid, Modal, Radio, TextField, Typography } from '@mui/material'; import { Add, Close, InfoOutlined } from '@mui/icons-material'; import './newIntentModal.css'; import Button from '../../../../../../components/Button/Button'; import { InfoCircleIcon } from '../../../../../../components/aisera-icons/custom'; import { Select } from '../../../../../../components/Select/Select'; import { RadioButton } from '../../../../../../components/RadioButton/RadioButton'; export interface DropdownData { options: any[]; initialValue?: string; label?: string; value?: string; width?: string; onOptionChange?: (value: string) => void; } export interface IntentOptions { height?: string; initialValue?: string; width?: string; requests: number; categorization: DropdownData; radioData: any; } export const ButtonComponent = ({ ...intentOptions }: IntentOptions) => { const [open, setOpen] = useState(false); const handleOpen = () => { setOpen(true); }; const handleCategorization = (value: any) => { if (intentOptions?.categorization?.onOptionChange) { intentOptions.categorization.onOptionChange(value); } }; const handleClose = () => { setOpen(false); }; return (
New Intent

Name * Display Name Category * Intent Fulfillment {/* {options.map((option) => ( } label={option.label} /> ))} */} Sample Phrase
); }; export default ButtonComponent;