Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ variant }) => ({
position: 'relative',
...{
instructional: messaging.standard,
success: messaging.success,
error: messaging.error,
warning: messaging.warning,
branded: { backgroundColor: colorWhiteLilac },
}[variant],
})
)
const StyledFeedback = styled(({ feedback, ...rest }) => )(({ feedback }) => ({
...borders.rounded,
...(feedback === 'success' && messaging.success),
...(feedback === 'error' && messaging.error),
...(feedback === undefined && messaging.standard),
}))