HEX
Server: LiteSpeed
System: Linux premium267.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: predezso (1249)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/extendify/src/Recommendations/components/RecommendationsGrid.jsx
import { RecommendationCard } from '@recommendations/components/RecommendationCard';

export const RecommendationsGrid = ({ recommendations }) => {
	return (
		<div
			className="grid grid-cols-1 gap-4 px-6 py-8 md:grid-cols-2 3xl:grid-cols-3 5xl:grid-cols-4"
			data-test="extendify-recommendations-grid">
			{recommendations.map((recommendation) =>
				// Don't render the card if the CTA type is not supported.
				['plugin', 'external-link', 'internal-link'].includes(
					recommendation.ctaType,
				) ? (
					<RecommendationCard key={recommendation.slug} {...recommendation} />
				) : null,
			)}
		</div>
	);
};