import { __ } from '@wordpress/i18n'; import Checkbox from './Checkbox'; import Input from './Input'; import TransparentColorPicker from './TransparentColorPicker'; type FontStyleValue = { bold: boolean; italic: boolean; underline: boolean; }; type LinkStyleCardProps = { title?: string; fontStyle: FontStyleValue; onFontStyleChange: ( value: FontStyleValue ) => void; color: string; onColorChange: ( value: string ) => void; fontSize: number; onFontSizeChange: ( value: number ) => void; fontSizeMin?: number; fontSizeMax?: number; fontStyleDescription?: string; colorDescription?: string; fontSizeDescription?: string; fontStyleCardClassName?: string; fontSizeLabel?: string; }; const LinkStyleCard = ( { title, fontStyle, onFontStyleChange, color, onColorChange, fontSize, onFontSizeChange, fontSizeMin = 10, fontSizeMax = 40, fontStyleDescription, colorDescription, fontSizeDescription, fontStyleCardClassName = '', fontSizeLabel, }: LinkStyleCardProps ) => (
{ fontStyleDescription }
: null }{ colorDescription }
: null }{ fontSizeDescription }
: null }