import React from 'react'; import { Link } from 'react-router-dom'; import './index.less'; function UserLayout(props) { const { menu = [], active, right, center, ads = [], onClick } = props; return (
onClick && onClick(e)}>
{menu.map(item => { return ( {item.short} ); })}
{center && (
{center.length > 0 ? ( center.map(item => { if (!item) return null; return
{item}
; }) ) : (
{center}
)}
)} {right && (
{right.length > 0 ? ( right.map(item => { if (!item) return null; return
{item}
; }) ) : (
{right}
)} {ads.length > 0 && ads.map(item => { return
{item}
; })}
)}
); } export default UserLayout;