95 |
96 | { blockInfo.icon && (
97 |
98 |
99 |
100 | ) }
101 |
102 | { blockInfo.displayTitle }
103 |
104 |
105 |
106 | );
107 | };
108 |
109 | /**
110 | * CopyButton component for copying class names to clipboard
111 | */
112 | export const CopyButton = ( {
113 | className,
114 | variant = 'secondary',
115 | size = 'small',
116 | } ) => {
117 | const copyRef = useCopyToClipboard(
118 | () => className || '',
119 | () => {}
120 | );
121 |
122 | return (
123 |