You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import React from "react";
|
|
|
|
import BasicTable from "./BasicTable";
|
|
|
|
|
|
|
|
const ReactTable3 = ({ breadCrumbs, subTitle, title }) => {
|
|
|
|
return (
|
|
|
|
<div className="my-10 w-11/12 mx-auto">
|
|
|
|
{/* breadCrumb */}
|
|
|
|
<div className="flex flex-row items-center">
|
|
|
|
{breadCrumbs.map((breadCrumb, index) => (
|
|
|
|
<div className="flex flex-row items-center">
|
|
|
|
<span
|
|
|
|
className={`cursor-pointer text-xs hover:text-blue-900 ${
|
|
|
|
breadCrumb.active ? "text-blue-900" : "text-blue-400"
|
|
|
|
}`}
|
|
|
|
>
|
|
|
|
{breadCrumb.name}
|
|
|
|
</span>
|
|
|
|
{Number(index) !== breadCrumbs.length - 1 && (
|
|
|
|
<div
|
|
|
|
className={`mx-2 ${
|
|
|
|
breadCrumb.active ? "text-blue-900" : "text-blue-400"
|
|
|
|
}`}
|
|
|
|
>
|
|
|
|
{" > "}
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="my-7">
|
|
|
|
{/* page Title */}
|
|
|
|
<div className="flex flex-row items-center">
|
|
|
|
<div className="w-1 h-5 bg-blue-500 rounded ml-1"></div>
|
|
|
|
<h2 className="text-base text-blue-900">{title}</h2>
|
|
|
|
</div>
|
|
|
|
{/* page Title */}
|
|
|
|
<div className="flex flex-row items-center mt-4">
|
|
|
|
<div className="w-1 h-5 bg-gray-400 rounded ml-1"></div>
|
|
|
|
<h2 className="text-sm">{subTitle}</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<BasicTable />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ReactTable3;
|
|
|
|
|
|
|
|
ReactTable3.defaultProps = {
|
|
|
|
breadCrumbs: [
|
|
|
|
{
|
|
|
|
name: "صفحه اصلی",
|
|
|
|
active: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "آمار و گزارشات",
|
|
|
|
active: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "فروش محصولات",
|
|
|
|
active: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "سال 1400",
|
|
|
|
active: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
|
|
|
title: "میزان فروش محصولات",
|
|
|
|
subTitle: "اطلاعات جداول مشخصاتی کارکنان مجموعه ایران تایر",
|
|
|
|
};
|