perf(vite): add dynamic imports
This commit is contained in:
parent
78e15f6218
commit
85921a0a08
29 changed files with 470 additions and 326 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
export type TextProps = {
|
||||
value: string;
|
||||
fontSize?: CSSProperties["fontSize"];
|
||||
showEditedIndicator?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -25,6 +26,9 @@ export default function Text(props: TextProps) {
|
|||
return (
|
||||
<div className="tm-md-root" style={{ fontSize: props.fontSize }}>
|
||||
{renderedBlocks}
|
||||
{props.showEditedIndicator && (
|
||||
<span className="ml-1 text-xs text-muted-foreground">(edited)</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue