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.

57 lines
798 B

3 years ago
import React from "react";
3 years ago
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>
);
3 years ago
};
export default Month;
Month.defaultProps = {
3 years ago
items: [
{
month: "فروردین",
},
{
month: "اردیبهشت",
},
{
month: "خرداد",
},
{
month: "تیر",
},
{
month: "مرداد",
},
{
month: "شهریور",
},
{
month: "مهر",
},
{
month: "آبان",
},
{
month: "آذر",
},
{
month: "دی",
},
{
month: "بهمن",
},
{
month: "اسفند",
},
],
3 years ago
};