import React from 'react' import useTheme from '../use-theme' import withDefaults from '../utils/with-defaults' interface Props { left: number disabled?: boolean isClick?: boolean } const defaultProps = { left: 0, disabled: false, isClick: false } type NativeAttrs = Omit, keyof Props> export type SliderDotProps = Props & typeof defaultProps & NativeAttrs const SliderDot = React.forwardRef>( ({ children, disabled, left, isClick }, ref: React.Ref) => { const theme = useTheme() return (
{children}
) } ) export default withDefaults(SliderDot, defaultProps)