+
{positive && (
handleClick(e, 'positive', positive.onClick)}
className={positive.className}
isDisabled={positive.isDisabled}
tooltipContent={positive.tooltipContent ?? 'Good response'}
+ clickedTooltipContent={positive.clickedTooltipContent ?? 'Response recorded'}
tooltipProps={positive.tooltipProps}
icon={}
+ isClicked={activeButton === 'positive'}
>
)}
{negative && (
handleClick(e, 'negative', negative.onClick)}
className={negative.className}
isDisabled={negative.isDisabled}
tooltipContent={negative.tooltipContent ?? 'Bad response'}
+ clickedTooltipContent={negative.clickedTooltipContent ?? 'Response recorded'}
tooltipProps={negative.tooltipProps}
icon={}
+ isClicked={activeButton === 'negative'}
>
)}
{copy && (
handleClick(e, 'copy', copy.onClick)}
className={copy.className}
isDisabled={copy.isDisabled}
tooltipContent={copy.tooltipContent ?? 'Copy'}
+ clickedTooltipContent={copy.clickedTooltipContent ?? 'Copied'}
tooltipProps={copy.tooltipProps}
icon={}
+ isClicked={activeButton === 'copy'}
>
)}
{share && (
handleClick(e, 'share', share.onClick)}
className={share.className}
isDisabled={share.isDisabled}
tooltipContent={share.tooltipContent ?? 'Share'}
+ clickedTooltipContent={share.clickedTooltipContent ?? 'Shared'}
tooltipProps={share.tooltipProps}
icon={}
+ isClicked={activeButton === 'share'}
>
)}
{listen && (
handleClick(e, 'listen', listen.onClick)}
className={listen.className}
isDisabled={listen.isDisabled}
tooltipContent={listen.tooltipContent ?? 'Listen'}
+ clickedTooltipContent={listen.clickedTooltipContent ?? 'Listening'}
tooltipProps={listen.tooltipProps}
icon={}
+ isClicked={activeButton === 'listen'}
>
)}
{Object.keys(additionalActions).map((action) => (
handleClick(e, action, additionalActions[action]?.onClick)}
className={additionalActions[action]?.className}
isDisabled={additionalActions[action]?.isDisabled}
tooltipContent={additionalActions[action]?.tooltipContent}
tooltipProps={additionalActions[action]?.tooltipProps}
+ clickedTooltipContent={additionalActions[action]?.clickedTooltipContent}
icon={additionalActions[action]?.icon}
+ isClicked={activeButton === action}
/>
))}