mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
17 lines
399 B
TypeScript
17 lines
399 B
TypeScript
import * as React from 'react';
|
|
|
|
import type { SlateLeafProps } from 'platejs/static';
|
|
|
|
import { SlateLeaf } from 'platejs/static';
|
|
|
|
export function CodeLeafStatic(props: SlateLeafProps) {
|
|
return (
|
|
<SlateLeaf
|
|
{...props}
|
|
as="code"
|
|
className="whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm"
|
|
>
|
|
{props.children}
|
|
</SlateLeaf>
|
|
);
|
|
}
|