import _ from 'lodash' import '@/assets/css/components/common/indicator.scss' interface IndicatorProps { total: number current: number onSwitch?: (index: number) => void } const Indicator = ({ total, current, onSwitch }: IndicatorProps) => { const handleClick = (index: number) => { return () => { onSwitch?.(index) } } return ( <>