Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / src / components / atoms / Blink / renderProps.tsx
Size: Mime:
import React from 'react'
import { BlinkWrapper, BlinkElement } from './styled'
import { BlinkProps } from './typings'
import { CommonState } from 'src/state'

function defaultRenderChildren(props: BlinkProps) {
  const { content } = props
  return <BlinkElement>{content}</BlinkElement>
}

function defaultRenderWrapper(props: BlinkProps, state?: CommonState) {
  const { className, children } = props
  return <BlinkWrapper className={className} shouldBlink={state.isVisible}>{children}</BlinkWrapper>
}

export { defaultRenderWrapper, defaultRenderChildren }