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