in src/theme/NavbarItem/index.tsx [12:19]
function normalizeComponentType(type: NavbarItemType, props: object) {
// Backward compatibility: navbar item with no type set
// but containing dropdown items should use the type "dropdown"
if (!type || type === 'default') {
return 'items' in props ? 'dropdown' : 'default';
}
return type;
}