config.code.callback(command)}
/>
) : (
{children}
);
},
pre({ children }) {
return <>{children}>;
},
});
export function Content(props: ContentProps) {
return (
sendCustomEvent(
'code-snippets',
'click',
props.document.filePath
),
},
})}
/>
);
}
function createAnchorContent(node: any) {
node.properties.className = ['group'];
return {
type: 'element',
tagName: 'svg',
properties: {
xmlns: 'http://www.w3.org/2000/svg',
className: [
'inline',
'ml-2',
'mb-1',
`h-5`,
`w-5`,
'opacity-0',
'group-hover:opacity-100',
],
fill: 'none',
viewBox: '0 0 24 24',
stroke: 'currentColor',
},
children: [
{
type: 'element',
tagName: 'path',
properties: {
'stroke-linecap': 'round',
'stroke-linejoin': 'round',
'stroke-width': '2',
d: 'M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1',
},
children: [],
},
],
};
}
export default Content;