import React from 'react';
import { HMSPollQuestionOption } from '@100mslive/react-sdk';
import { TrashIcon } from '@100mslive/react-icons';
import { Input } from '../../../../Input';
// @ts-ignore
import IconButton from '../../../IconButton';
export const OptionInputWithDelete = ({
index,
option,
handleOptionTextChange,
removeOption,
}: {
index: number;
option: HMSPollQuestionOption;
handleOptionTextChange: (index: number, value: string) => void;
removeOption: (index: number) => void;
}) => {
return (
<>
handleOptionTextChange(index, event.target.value.trimStart())}
maxLength={250}
/>
removeOption(index)} css={{ bg: 'transparent', border: 'none' }}>
>
);
};