perf: memo

This commit is contained in:
cha0s 2024-07-13 03:03:10 -05:00
parent 4a0b42fbe5
commit 170a874faf

View File

@ -1,6 +1,8 @@
import {memo} from 'react';
import Dialogues from './dialogues.jsx';
export default function Entity({camera, entity, scale}) {
function Entity({camera, entity, scale}) {
return (
<>
{entity.Interlocutor && (
@ -12,4 +14,6 @@ export default function Entity({camera, entity, scale}) {
)}
</>
)
}
}
export default memo(Entity);