parent
7a27be4179
commit
cb1184c2d0
3 changed files with 41 additions and 2 deletions
@ -0,0 +1,39 @@ |
||||
import React from 'react' |
||||
|
||||
const NumOfGuestsEmployees = ({items}) => { |
||||
return ( |
||||
<div className="flex flex-row flex-wrap items-center justify-center bg-white shadow-sm rounded-lg max-w-[440px] w-1/3 p-5 mt-10 mr-10"> |
||||
{items.map((item,i) => ( |
||||
<div key={i} className="flex flex-row justify-around bg-red-200"> |
||||
<div className="font-bold text-xs bg-blue-200 flex flex-col"> |
||||
<p className="text-[#0F0543]">{item.name}</p> |
||||
<span className="text-[#2483E1]">{item.number} نفر</span> |
||||
</div> |
||||
</div> |
||||
))} |
||||
</div> |
||||
) |
||||
} |
||||
|
||||
export default NumOfGuestsEmployees |
||||
|
||||
NumOfGuestsEmployees.defaultProps = { |
||||
items: [ |
||||
{ |
||||
name: "تعداد کارمندان محترم", |
||||
number: "259", |
||||
}, |
||||
{ |
||||
name: "تعداد مهمانان محترم", |
||||
number: "569", |
||||
}, |
||||
// {
|
||||
// name: "ظرفیت باقیمانده کارمندان محترم",
|
||||
// number: "5",
|
||||
// },
|
||||
// {
|
||||
// name: "ظرفیت باقیمانده مهمانان محترم",
|
||||
// number: "6",
|
||||
// },
|
||||
] |
||||
} |
Loading…
Reference in new issue