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.

40 lines
1.0 KiB

3 years ago
import React from 'react'
const time = {
morningTime: "صبح",
sunriseTime: "طلوع",
noonTime: "ظهر",
sunsetTime: "غروب",
maghribTime: "مغرب",
midnightTime: "نیمه شب",
3 years ago
}
const ReligiousTimes = ({hours}) => {
3 years ago
return (
<div className="flex flex-row items-center justify-around bg-white shadow-sm rounded-lg max-w-[444px] w-1/3 py-3.5 px-0.5 mr-10">
{Object.keys(hours).map((hour, index) => (
<div className="flex flex-row items-center" key={index}>
<span className="text-xs text-[#0F0543] font-bold">
{time[hour]}
</span>
<span className="text-xs text-[#2483E1] mr-1 font-bold">
{hours[hour]}
</span>
</div>
))}
</div>
3 years ago
)
}
export default ReligiousTimes
ReligiousTimes.defaultProps = {
hours: {
morningTime: "5:03",
sunriseTime: "6:27",
noonTime: "12:15",
sunsetTime: "18:05",
maghribTime: "18:23",
midnightTime: "23:34",
},
}