import {memo} from 'react';

import Dialogues from './dialogues.jsx';

function Entity({camera, entity, scale}) {
  return (
    <>
      {entity.Interlocutor && (
        <Dialogues
          camera={camera}
          dialogues={entity.Interlocutor.dialogues}
          scale={scale}
        />
      )}
    </>
  )
}

export default memo(Entity);
