Repository URL to install this package:
|
Version:
4.0.35 ▾
|
import React from 'react'
import { PlaceholderProps } from './typings'
import { fromBreedToComponent } from './deps'
class Placeholder extends React.PureComponent<PlaceholderProps> {
static defaultProps = {
className: '',
}
render() {
const { breedType, ...remainingProps } = this.props
const Component = fromBreedToComponent(breedType)
return <Component {...remainingProps} />
}
}
export { Placeholder }
export default Placeholder