import { Italic } from '@src/components/docs/plugins/Components'; import React from 'react'; export const renderLeaf = (props: any) => ; const Leaf: any = ({ attributes, children, leaf }: any) => { if (leaf.modifiedOld) { children = {children}; } if (leaf.modifiedNew) { children = {children}; } if (leaf.bold) { children = {children}; } if (leaf.code) { children = ( {children} ); } if (leaf.italic) { children = {children}; } if (leaf.underline) { children = {children}; } if (leaf.strikethrough) { children = {children}; } return ( {children} ); };