// Types import type { ComponentType } from 'react'; // Custom Types import type { DecoratorComponentProps, DecoratorWrapperProps, } from '../../types'; const withDecoratorComponent = (Wrapped: ComponentType) => (props: DecoratorWrapperProps) => { const { contentState, blockKey, decoratedText, entityKey, offsetKey, end, start, ...otherProps } = props; const entity = contentState.getEntity(entityKey); const blockType = entity.getType(); const mutability = entity.getMutability; const attributes = entity.getData(); return ( ); }; export default withDecoratorComponent;