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

const VerticalMenuComponent = (props: VerticalMenuProps) => {
  return <Island module={VerticalMenuIsland} {...props} />;
};

type VerticalMenuComponentType = typeof VerticalMenuComponent & {
  ContentFields: typeof ContentFields;
};

const VerticalMenu = VerticalMenuComponent as VerticalMenuComponentType;
VerticalMenu.ContentFields = ContentFields;

export default VerticalMenu;
