| 1 | "use client"; |
| 2 | |
| 3 | import { PlateElement, type PlateElementProps } from "platejs/react"; |
| 4 | |
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | export function PresentationParagraphElement({ |
| 8 | className, |
| 9 | children, |
| 10 | ref, |
| 11 | ...props |
| 12 | }: PlateElementProps) { |
| 13 | return ( |
| 14 | <PlateElement |
| 15 | ref={ref} |
| 16 | className={cn( |
| 17 | "slate-selectable m-0 px-0 py-1 [font-size:var(--presentation-p-size)]", |
| 18 | "leading-[1.6]", |
| 19 | "text-(--presentation-text)", |
| 20 | "[font-family:var(--presentation-body-font)]", |
| 21 | "caret-primary", |
| 22 | className, |
| 23 | )} |
| 24 | {...props} |
| 25 | > |
| 26 | {children} |
| 27 | </PlateElement> |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | PresentationParagraphElement.displayName = "PresentationParagraphElement"; |
| 32 |