import React, { useState } from 'react'; import { Box, FormControlLabel, Grid, Modal, Radio, TextField, Typography } from '@mui/material'; import { Add, InfoOutlined } from '@mui/icons-material'; import './updateIntent.css'; import CustomTable from '../UpdateIntentTable/UpdateIntentTable'; import Button from '../../../../../../components/Button/Button'; import { Select } from '../../../../../../components/Select/Select'; import { TrashDeleteIcon } from '../../../../../../components/aisera-icons/custom'; import { RadioButton } from '../../../../../../components/RadioButton/RadioButton'; export interface DropdownData { options: any[]; 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; tableData: any; } export const EntityComponent = ({ ...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 (