| 1 | import { SlateElement, type SlateElementProps } from "platejs/static"; |
| 2 | |
| 3 | import { cn } from "@/lib/utils"; |
| 4 | |
| 5 | export function HrElementStatic(props: SlateElementProps) { |
| 6 | return ( |
| 7 | <SlateElement {...props}> |
| 8 | <div className="cursor-text py-6" contentEditable={false}> |
| 9 | <hr |
| 10 | className={cn( |
| 11 | "h-0.5 rounded-sm border-none bg-muted bg-clip-content", |
| 12 | )} |
| 13 | /> |
| 14 | </div> |
| 15 | {props.children} |
| 16 | </SlateElement> |
| 17 | ); |
| 18 | } |
| 19 |