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";
|
|
|
|
|
|
|
|
const Month = ({ items }) => {
|
|
|
|
return (
|
|
|
|
<div className="flex flex-col">
|
|
|
|
{items.map((item, index) => (
|
|
|
|
<span className="text-xs my-2" key={index}>
|
|
|
|
{item.month}
|
|
|
|
</span>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Month;
|
|
|
|
|
|
|
|
Month.defaultProps = {
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
month: "فروردین",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "اردیبهشت",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "خرداد",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "تیر",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "مرداد",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "شهریور",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "مهر",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "آبان",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "آذر",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "دی",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "بهمن",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
month: "اسفند",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|