How to change Block Controls Icon in Gutenberg?

There is a controls prop you can use which is an object. It goes inside. Controls has an icon key which takes a string which corresponds to a Dashicon slug.

<BLockControls
    controls={[
    icon=”wordpress”
    title=__("Test", "gutenberg-examples"),
    onClick: () => { doSomething },
    isActive: false

    
    ]}
/>