|
|
|
@ -13,15 +13,17 @@ import UploadFile from "../UploadFile"; |
|
|
|
|
|
|
|
|
|
import graySearchIcon from "./images/gray-search-icon.svg"; |
|
|
|
|
import arrowLeft from "./images/arrow-left.svg"; |
|
|
|
|
|
|
|
|
|
import BasicTable from "../ReactTable4/index"; |
|
|
|
|
import SemiDonut from "../SemiDonut"; |
|
|
|
|
import Button from "../Button"; |
|
|
|
|
|
|
|
|
|
const FileManager = () => { |
|
|
|
|
const FileManager = ({ buttons }) => { |
|
|
|
|
return ( |
|
|
|
|
<div style={{ backgroundColor: "#FBFBFB" }} className="flex flex-row"> |
|
|
|
|
<div className="flex flex-row bg-[#FBFBFB]"> |
|
|
|
|
{/* ? right Section */} |
|
|
|
|
<div className="w-9/12"> |
|
|
|
|
<div className="px-7 py-5"> |
|
|
|
|
<div className="w-9/12 flex flex-col"> |
|
|
|
|
<div className=" p-4"> |
|
|
|
|
{/* ? breadCrumb */} |
|
|
|
|
<div className="mb-5"> |
|
|
|
|
<BreadCrumb /> |
|
|
|
@ -30,7 +32,6 @@ const FileManager = () => { |
|
|
|
|
<div className="flex flex-row justify-between"> |
|
|
|
|
{/* ? pageTitle */} |
|
|
|
|
<TitleSubtitle titleBorderClassName={""} /> |
|
|
|
|
|
|
|
|
|
{/* ? searchbox */} |
|
|
|
|
<div className="self-end"> |
|
|
|
|
<SearchBox |
|
|
|
@ -54,34 +55,14 @@ const FileManager = () => { |
|
|
|
|
</div> |
|
|
|
|
{/* buttons */} |
|
|
|
|
<div className="flex flex-row item-center justify-between self-center gap-2"> |
|
|
|
|
<ButtonNewDesign |
|
|
|
|
bgColor={"bg-blue-500"} |
|
|
|
|
bgHoverColor={"hover:bg-blue-600"} |
|
|
|
|
iconBgColor={null} |
|
|
|
|
textColor={"text-white"} |
|
|
|
|
border={"border"} |
|
|
|
|
borderColor={"border-blue-500"} |
|
|
|
|
borderRadius={"rounded"} |
|
|
|
|
fontSize={"text-xs"} |
|
|
|
|
paddingX={"p-3"} |
|
|
|
|
paddingY={"p-3"} |
|
|
|
|
icon={true} |
|
|
|
|
buttonIcon={arrowLeft} |
|
|
|
|
/> |
|
|
|
|
<ButtonNewDesign |
|
|
|
|
bgColor={"bg-blue-100"} |
|
|
|
|
bgHoverColor={"hover:bg-blue-600"} |
|
|
|
|
iconBgColor={null} |
|
|
|
|
textColor={"text-blue-900"} |
|
|
|
|
border={"border"} |
|
|
|
|
borderColor={"border-blue-500"} |
|
|
|
|
borderRadius={"rounded"} |
|
|
|
|
fontSize={"text-xs"} |
|
|
|
|
paddingX={"p-3"} |
|
|
|
|
paddingY={"p-3"} |
|
|
|
|
icon={true} |
|
|
|
|
buttonIcon={arrowLeft} |
|
|
|
|
/> |
|
|
|
|
{buttons.map((btn) => ( |
|
|
|
|
<Button |
|
|
|
|
className={`${btn.className} text-xs rounded p-2`} |
|
|
|
|
iconClassName={`bg-transparent mr-1`} |
|
|
|
|
text={btn.name} |
|
|
|
|
icon={arrowLeft} |
|
|
|
|
/> |
|
|
|
|
))} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{/* folderLists */} |
|
|
|
@ -100,7 +81,6 @@ const FileManager = () => { |
|
|
|
|
{/* left Section */} |
|
|
|
|
<div className="w-3/12 py-5 flex flex-col"> |
|
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
|
|
|
|
|
|
|
<SemiDonut /> |
|
|
|
|
<div className="px-4" style={{ marginTop: "-113px" }}> |
|
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
|
@ -117,3 +97,17 @@ const FileManager = () => { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export default FileManager; |
|
|
|
|
|
|
|
|
|
FileManager.defaultProps = { |
|
|
|
|
buttons: [ |
|
|
|
|
{ |
|
|
|
|
name: "رابط کاربری", |
|
|
|
|
className: "bg-[#4E85E5] text-white", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "فرانت اند", |
|
|
|
|
className: |
|
|
|
|
"bg-transparent border border-[#4E85E5] text-[#4E85E5] font-sansbold", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|