) =>
{
event.preventDefault();
const nextViewId = views[getNextViewIndex()]?.id;
if (nextViewId)
{
dispatch(switchView(nextViewId));
}
if (typeof onClick === 'function')
{
onClick(props);
}
};
// csak ha az aktiv vagy idval megadott tabok valtoznak pl status
console.log('render ViewTabNavigation', views)
if (!views.length)
{
return
}
return (
{ typeof label === 'function' ? label(props) : label }
);
}
ViewTabNavigation.defaultProps = defaultProps;
export default ViewTabNavigation;