mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
19 lines
500 B
React
19 lines
500 B
React
import React from "react";
|
|
import { Link } from "react-router-dom";
|
|
import { Layout, Breadcrumb } from "antd";
|
|
|
|
const { Content } = Layout;
|
|
|
|
export default function PageLayout(props) {
|
|
return <>
|
|
<Breadcrumb className="site-breadcrumb">
|
|
{props.nav.map((part, index) => <Breadcrumb.Item key={index}>
|
|
{part.path ? <Link to={part.path}>{part.name}</Link> : part.name}
|
|
</Breadcrumb.Item>)}
|
|
</Breadcrumb>
|
|
<Content className="site-layout-content" >
|
|
{props.children}
|
|
</Content>
|
|
</>;
|
|
}
|