| 1 | "use client"; |
| 2 | |
| 3 | import { cn } from "@/lib/utils"; |
| 4 | import { PlateElement, type PlateElementProps } from "platejs/react"; |
| 5 | |
| 6 | export const TableCell = (props: PlateElementProps) => { |
| 7 | return ( |
| 8 | <div |
| 9 | className={cn("rounded border bg-card p-3 text-sm")} |
| 10 | style={{ |
| 11 | backgroundColor: "var(--presentation-card-background)", |
| 12 | color: "var(--presentation-text)", |
| 13 | borderColor: "hsl(var(--border))", |
| 14 | }} |
| 15 | > |
| 16 | <PlateElement {...props}>{props.children}</PlateElement> |
| 17 | </div> |
| 18 | ); |
| 19 | }; |
| 20 |