import { styled } from '@dank-style/react'; import { View } from 'react-native'; export default styled( View, { p: '$2', borderRadius: '$sm', flexDirection: 'row', shadowColor: '$backgroundLight800', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.15, shadowRadius: 3.84, elevation: 5, variants: { action: { error: { bg: '#FEF1F1', borderColor: '$error200', _icon: { color: '$error600', }, // _text: { // color: '$textLight800', // }, _dark: { bg: '#2E2020', borderColor: '$error800', // _text: { // color: '$textDark100', // }, _icon: { color: '$error400', }, }, }, warning: { bg: '#FFF4EB', borderColor: '$warning200', _icon: { color: '$warning600', }, // _text: { // color: '$textLight800', // }, _dark: { bg: '#2E231B', borderColor: '$warning800', // _text: { // color: '$textDark100', // }, }, }, success: { bg: '#EDFCF2', borderColor: '$success200', _icon: { color: '$success600', }, // _text: { // color: '$textLight800', // }, _dark: { bg: '#1C2B21', borderColor: '$success800', // _text: { // color: '$textDark100', // }, }, }, info: { bg: '#EBF8FE', borderColor: '$info200', _icon: { color: '$info600', }, // _text: { // color: '$textLight800', // }, _dark: { bg: '#1A282E', borderColor: '$info800', // _text: { // color: '$textDark100', // }, _icon: { color: '$info400', }, }, }, muted: { bg: '#F6F6F7', borderColor: '$secondary200', _icon: { color: '$secondary600', }, // _text: { // color: '$textLight800', // }, _dark: { bg: '#252526', borderColor: '$secondary800', // _text: { // color: '$textDark100', // }, _icon: { color: '$secondary400', }, }, }, }, variant: { solid: {}, outline: { borderWidth: '$1', }, accent: { borderLeftWidth: '$4', }, }, }, _web: { pointerEvents: 'box-none', }, mb: '$2', defaultProps: { variant: 'solid', action: 'muted', }, }, { descendantStyle: ['_icon', '_text'] } );