Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tag: (themeName, { href, icon, isPressed, onClick, size }) => {
const label = 'psds-tag'
const clickable = href || onClick
return compose(
css(stylesheet[`.${label}`]),
css(stylesheet[`.${label}.psds-theme--${themeName}`]),
clickable && css(stylesheet[`.${label}--clickable`]),
clickable &&
css(stylesheet[`.${label}--clickable.psds-theme--${themeName}`]),
css(stylesheet[`.${label}--size-${size}`]),
icon && css(stylesheet[`.${label}--icon`]),
isPressed && css(stylesheet[`.${label}--isPressed`])
)
},
label: (themeName, { icon }) => {