| 1 | import { type TLinkElement } from "platejs"; |
| 2 | import { SlateElement, type SlateElementProps } from "platejs/static"; |
| 3 | |
| 4 | export function LinkElementStatic(props: SlateElementProps<TLinkElement>) { |
| 5 | return ( |
| 6 | <SlateElement |
| 7 | {...props} |
| 8 | as="a" |
| 9 | className="font-medium text-primary underline decoration-primary underline-offset-4" |
| 10 | > |
| 11 | {props.children} |
| 12 | </SlateElement> |
| 13 | ); |
| 14 | } |
| 15 |