/** * External dependencies */ import { Link } from '@woocommerce/components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import { ThemeCard as TypeThemeCard } from './types'; import { ColorPalettes } from './color-palettes'; export const ThemeCard = ( { slug, description, thumbnail_url, name, color_palettes = [], total_palettes = 0, link_url = '', is_active = false, onClick, }: TypeThemeCard & { onClick: () => void; } ) => { return (
{ link_url ? ( { ) : ( { ) }

{ name }

{ color_palettes && ( ) }
{ is_active && ( { __( 'Active theme', 'woocommerce' ) } ) } Free
); };