- {showArrow.left && getArrow(SlideDirection.Right, 'left', leftIcon)}
- {showArrow.right && getArrow(SlideDirection.Left, 'right', rightIcon)}
+ {showArrow.left &&
+ leftIcon &&
+ getArrow(SlideDirection.Right, 'left', leftIcon)}
+ {showArrow.right &&
+ rightIcon &&
+ getArrow(SlideDirection.Left, 'right', rightIcon)}
= ({
export interface SliderProps {
children: Item[];
className?: string;
- leftIcon?: ReactElement;
- rightIcon?: ReactElement;
+ leftIcon?: ReactElement | null;
+ rightIcon?: ReactElement | null;
+ triggerClickOn?: number;
}
export type Arrows = {