Skip to content
Snippets Groups Projects
comment-leaf-static.tsx 547 B
Newer Older
Leon Jung's avatar
Leon Jung committed
import React from 'react';

import type { TCommentText } from '@udecode/plate-comments';
import type { SlateLeafProps } from '@udecode/plate-common';

import { cn } from '@udecode/cn';
import { SlateLeaf } from '@udecode/plate-common';

export function CommentLeafStatic({
  children,
  className,
  ...props
}: SlateLeafProps<TCommentText>) {
  return (
    <SlateLeaf
      className={cn(
        className,
        'border-b-2 border-b-highlight/35 bg-highlight/15'
      )}
      {...props}
    >
      <>{children}</>
    </SlateLeaf>
  );
}