Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
variant,
iconPosition,
fluidWidth
} = this.props
const positionIconAtEnd = iconPosition === 'end' && (variant === 'filled' || fluidWidth)
const classes = {
[styles.root]: true,
[styles[this.props.size]]: true,
[styles.positionIconAtEnd]: positionIconAtEnd
}
return (
{({ expanded, getToggleProps, getDetailsProps}) => {
return (
<div>
{this.renderToggle(getToggleProps(), expanded)}
{this.renderDetails(expanded, getDetailsProps())}
</div>
)
}}
)
}
}
render () {
const Element = getElementType(ToggleGroup, this.props)
return (
{({ expanded, getToggleProps, getDetailsProps }) => {
return (