import { cn } from "@/lib/utils"; import { __ } from "@wordpress/i18n"; import { AlertTriangle, Lock, LucideIcon, Power, PowerOff } from "lucide-react"; interface AssetStatusProps { text: string; icon: LucideIcon; className: string; } const Legend = () => { const assestStatuses: AssetStatusProps[] = [ { icon: Power, text: __("Enabled", "wp-cloudflare-page-cache"), className: "text-green-500" }, { icon: PowerOff, text: __("Disabled", "wp-cloudflare-page-cache"), className: "text-red-500" }, { icon: Lock, text: __("Partially", "wp-cloudflare-page-cache"), className: "text-yellow-500" }, ]; return (
{assestStatuses.map(({ className, icon: Icon, text }, index) => { return (
{text}
) })}
{__('Changes take effect immediately after saving', 'wp-cloudflare-page-cache')}
) } export default Legend;