|
|
|
@ -3,18 +3,20 @@ import React from "react"; |
|
|
|
|
import Calender from "../Calender"; |
|
|
|
|
import Button from "../../ButtonDesign/Button/"; |
|
|
|
|
|
|
|
|
|
const CalenderList = ({ buttons }) => { |
|
|
|
|
const CalenderList = ({ buttons, leftArrow, rightArrow }) => { |
|
|
|
|
return ( |
|
|
|
|
<div className="flex flex-col bg-white"> |
|
|
|
|
<div className="w-[96%] mx-auto flex flex-row "> |
|
|
|
|
<div className="flex flex-col bg-white mx-auto"> |
|
|
|
|
<div className="w-[96%] mx-auto flex flex-row items-center"> |
|
|
|
|
{/* right side */} |
|
|
|
|
<div className=" flex flex-row items-center divide-x-2 divide-surfaceBorder divide-x-reverse"> |
|
|
|
|
{/* right side */} |
|
|
|
|
<div className="flex px-4 flex-row text-primaryText"> |
|
|
|
|
<span className="text-sm">خرداد</span> |
|
|
|
|
<div className="flex flex-row items-center px-4 text-primaryText"> |
|
|
|
|
<img src={rightArrow} class="w-8" alt="right-arrow" /> |
|
|
|
|
<span className="text-sm mx-2">خرداد</span> |
|
|
|
|
<img src={leftArrow} class="w-8" alt="left-arrow" /> |
|
|
|
|
</div> |
|
|
|
|
{/* left side */} |
|
|
|
|
<div className="flex px-4 flex-row"> |
|
|
|
|
<div className="flex px-4 flex-row items-center"> |
|
|
|
|
{buttons.map((button, i) => ( |
|
|
|
|
<Button |
|
|
|
|
key={i} |
|
|
|
@ -47,6 +49,9 @@ const CalenderList = ({ buttons }) => { |
|
|
|
|
export default CalenderList; |
|
|
|
|
|
|
|
|
|
CalenderList.defaultProps = { |
|
|
|
|
leftArrow: "images/CalenderListGroup2496.svg", |
|
|
|
|
rightArrow: "images/CalenderListGroup2495.svg", |
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
{ |
|
|
|
|
title: "روز", |
|
|
|
|