import { Flex, useIsDarkMode } from 'ui/src'
import { OnboardingUnicon } from 'ui/src/components/icons'
import { DEP_accentColors, iconSizes, opacify, validColor } from 'ui/src/theme'

export const UniconElement = (): JSX.Element => {
  const isDarkMode = useIsDarkMode()

  return (
    <Flex
      backgroundColor={isDarkMode ? validColor('$purpleDark') : opacify(20, DEP_accentColors.violet200)}
      borderRadius="$roundedFull"
      p="$spacing8"
      transform={[{ rotateZ: '-4deg' }]}
    >
      <OnboardingUnicon color={DEP_accentColors.violet400} size={iconSizes.icon28} />
    </Flex>
  )
}
