// @ts-expect-error -- ?island not typed
import NavigationMenuIsland from './islands/NavigationMenuIsland.js?island';
import { NavigationMenuProps } from './islands/types.js';
import { Island } from '@hubspot/cms-components';
import ContentFields from './ContentFields.js';

const NavigationMenuComponent = (props: NavigationMenuProps) => {
  return <Island module={NavigationMenuIsland} {...props} />;
};

type NavigationComponentType = typeof NavigationMenuComponent & {
  ContentFields: typeof ContentFields;
};

const NavigationMenu = NavigationMenuComponent as NavigationComponentType;
NavigationMenu.ContentFields = ContentFields;

export default NavigationMenu;
