Files
nobat724_front/components/blog/relatedContent/index.js
T

24 lines
800 B
JavaScript

import AnimationTextHead from "@/app/component/AnimationTextHead";
import UnderlineLG from "@/components/icons/UnderlineLG";
import React from "react";
import Item from "./Item";
function RelatedContent({ data, loading }) {
return (
<div className="p-[12px] w-full lg:w-fit md:p-[14px] lg:p-[16px] bg-[#FFF] rounded-[8px] shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)]">
<AnimationTextHead text="مطالب مرتبط">
<UnderlineLG />
</AnimationTextHead>
<ul className="flex w-full lg:w-fit flex-col justify-start items-start">
{data &&
data.length &&
data?.map((item, idx) => (
<Item idx={idx} data={item} key={item.id} loading={loading} />
))}
</ul>
</div>
);
}
export default RelatedContent;