feat: initial commit
This commit is contained in:
19
src/component/BreadcumbComponent.js
Normal file
19
src/component/BreadcumbComponent.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import {Breadcrumb} from "antd";
|
||||
import {Link} from "react-router-dom";
|
||||
|
||||
export const BreadcumbComponent = (props) => {
|
||||
return (
|
||||
<div>
|
||||
<Breadcrumb style={{marginBottom: 10}}>
|
||||
{props.data.map((e) => (
|
||||
<Breadcrumb.Item>
|
||||
<Link to={e.route}>
|
||||
<span>{e.name}</span>
|
||||
</Link>
|
||||
</Breadcrumb.Item>
|
||||
))}
|
||||
</Breadcrumb>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user