Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const DropCursorComponent = ({ options, type, container }: DropCursorComponentProps) => {
const { sx } = useRemirrorTheme();
const { Component, ...rest } = options;
return Component ? (
) : type === 'block' ? (
<div>
) : (
<span>
</span></div>
) : type === 'block' ? (
<div>
) : (
<span>
</span>
);
};
</div>
export const DropCursorComponent = ({ options, type, container }: DropCursorComponentProps) => {
const { sx } = useRemirrorTheme();
const { Component, ...rest } = options;
return Component ? (
) : type === 'block' ? (
<div>
) : (
<span>
</span>
);
};</div>