import React from 'react' import { NormalTypes } from '../utils/prop-types' import DotIcon from './icon' interface Props { type?: NormalTypes className?: string } const defaultProps = { type: 'default' as NormalTypes, className: '' } type NativeAttrs = Omit, keyof Props> export type DotProps = Props & typeof defaultProps & NativeAttrs const Dot: React.FC> = ({ type, children, className, ...props }) => { return ( {children} ) } type MemoDot

= React.NamedExoticComponent

& { Icon: typeof DotIcon } type ComponentProps = Partial & Omit & NativeAttrs Dot.defaultProps = defaultProps export default React.memo(Dot) as MemoDot