mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
22 lines
476 B
TypeScript
22 lines
476 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
|
|
import { cn } from '@udecode/cn';
|
|
import { withRef } from '@udecode/plate-common/react';
|
|
|
|
import { PlateElement } from './plate-element';
|
|
|
|
export const ParagraphElement = withRef<typeof PlateElement>(
|
|
({ children, className, ...props }, ref) => {
|
|
return (
|
|
<PlateElement
|
|
ref={ref}
|
|
className={cn('m-0 px-0 py-1', className)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</PlateElement>
|
|
);
|
|
}
|
|
);
|