import { __, sprintf } from "@wordpress/i18n"; import Tooltip, { type TooltipAnimation, } from "../../frontend/components/Tooltip"; type TooltipAnimationPreviewGridProps = { options: readonly { value: TooltipAnimation; label: string }[]; fadeInEnabled: boolean; fadeOutEnabled: boolean; adminColor: string; }; /** Uses the storefront tooltip so the examples share its motion and focus behavior. */ export function TooltipAnimationPreviewGrid({ options, fadeInEnabled, fadeOutEnabled, adminColor, }: TooltipAnimationPreviewGridProps) { return (

{__("Tooltip Animation Previews", "b3-swatches")}

{options.map(({ value, label }) => (
{label}
))}

{__( "Focus or hover over a box to preview its tooltip animation.", "b3-swatches", )}

); }