perf(vite): add dynamic imports

This commit is contained in:
Alois 2026-08-31 20:48:32 +02:00
commit 85921a0a08
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
29 changed files with 470 additions and 326 deletions

View file

@ -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>
);
}