-
- {tabs.map(({ id, ...resProps }) => (
-
- ))}
-
- {rightComponent || null}
-
-)
+}: TabGroupProps) => {
+ // Unique layoutId for motion.div to handle multiple tab groups on same page
+ // Using tab labels so that id remains same on re mount as well
+ const uniqueGroupId = useMemo(() => tabs.map((tab) => tab.label).join('-'), [])
+
+ return (
+