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.
50 lines
1.3 KiB
50 lines
1.3 KiB
import React from "react"; |
|
|
|
const persian = { |
|
weight: "وزن", |
|
pageNumber: "تعداد صفحات", |
|
pageType: "نوع کاغذ", |
|
bookNumber: "شماره شابک", |
|
publisher: "انتشارات", |
|
author: "نویسنده", |
|
bookType: "قطع", |
|
publishedYear: "سال انتشار", |
|
}; |
|
|
|
const Table = ({ specifications }) => { |
|
return ( |
|
<ul className="w-full"> |
|
{specifications?.map((property, index) => ( |
|
<li className="flex my-3 cursor-pointer group" key={index}> |
|
<div |
|
className=" bg-grayF9 rounded px-3 py-4 ml-2 text-greenBA text-sm group-hover:bg-blueC0 group-hover:bg-opacity-10" |
|
style={{ flex: 2 }} |
|
> |
|
{property.description} |
|
</div> |
|
<div |
|
className="bg-grayF9 rounded px-3 py-4 text-sm group-hover:bg-blueC0 group-hover:bg-opacity-10" |
|
style={{ flex: 8 }} |
|
> |
|
{property.value} |
|
</div> |
|
</li> |
|
))} |
|
</ul> |
|
); |
|
}; |
|
|
|
export default Table; |
|
|
|
Table.defaultProps = { |
|
specifications: { |
|
weight: "1 کیلوگرم", |
|
pageNumber: "400 صفحه", |
|
pageType: "گلاسه", |
|
bookNumber: "124900985340561870112312499", |
|
publisher: "رزمندگان", |
|
author: "یک نویسنده گمنام", |
|
bookType: "خشتی", |
|
publishedYear: "1399", |
|
}, |
|
};
|
|
|