"
}
autoFocus
/>
: <>
{note
?
{note.content}
: {synced ? "No note" : "Loading"}
}
{note && (note.updatedBy || note.updatedAtMs) &&
Last edited{note.updatedBy ? ` by ${note.updatedBy}` : ""}
{note.updatedAtMs ? ` on ${formatTimestamp(note.updatedAtMs)}` : ""}
}
>;
if (props.compact) {
return
{body}
{canUpdate && buttons}
;
}
return <>
{body}
>;
}