Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
RightIconComponent,
renderRightIcon,
rightIconProps = Object.create(null),
color,
backgroundColor,
fontWeight,
minWidth,
width,
variant = 'default',
styles,
children,
...props
},
ref,
) => {
const remirrorTheme = useRemirrorTheme();
const { sxx } = remirrorTheme;
const colorStyles = omitUndefined({ color, backgroundColor });
const otherStyles = { fontWeight, width, minWidth };
const paddedLeftIconProps = {
...leftIconProps,
styles: sxx(
renderRightIcon || RightIconComponent || content ? { paddingRight: 1 } : undefined,
leftIconProps.styles,
),
};
const leftIcon = renderLeftIcon
? renderLeftIcon({ remirrorTheme })
: LeftIconComponent && ;
const paddedRightIconsProps = {