import React from 'react' import useTheme from '../use-theme' import withDefaults from '../utils/with-defaults' interface Props { color?: string width?: number height?: number active?: boolean } const defaultProps = { width: 12, height: 12, active: false } export type TreeStatusIconProps = Props & typeof defaultProps const TreeStatusIcon: React.FC = ({ color, width, height, active }) => { const theme = useTheme() return ( {!active && } ) } const MemoTreeStatusIcon = React.memo(TreeStatusIcon) export default withDefaults(MemoTreeStatusIcon, defaultProps)