import React from 'react';
import './index.less';
function Navigation(props) {
const { list = [], active = 0, theme, onChange } = props;
return (
{list.map((item, index) => {
return (
{
if (onChange) onChange(index);
}}>
{item.title}
);
})}
);
}
Navigation.propTypes = {};
export default Navigation;