import { ChevronRight, Star } from "lucide-react"; import { __, sprintf } from "@wordpress/i18n"; const { help } = window.SPCDash; const PopularArticles = () => { const articles = help.popular; if (!articles?.length) { return null; } return (

{__('Popular Articles', 'wp-cloudflare-page-cache')}

{articles.map((article, index) => (

{article.title}

{article.content}

{/* translators: %d is the number of minutes */ sprintf(__('%d min read', 'wp-cloudflare-page-cache'), article.read_time)}
))}
) } export default PopularArticles;