+ {tabs.map(({ title, uid }, i) => {
+ let tabClass = 'single__tab';
+ if (uid === activeTab) {
+ ' single__tab--active';
+ }
+
+ return (
+
setActiveTab(uid)}
+ onKeyDown={() => setActiveTab(uid)}
+ role="tab"
+ tabIndex="0"
+ >
+ {
+ const newTabs = [...tabs];
+ newTabs[i].title = value;
+ setAttributes({ tabs: newTabs });
+ }}
+ />
+
+ );
+ })}
+