import React from 'react'
import {Menu, MenuProps, MenuItemProps} from 'antd'

const {Item} = Menu

const StarshipMenu = (props: MenuProps) => {
  const {className, ...restProps} = props;
  return (
    <Menu {...restProps} className={`starship-menu ${className}`} />
  )
}

StarshipMenu.Item = (props: MenuItemProps) => {
    const {className, ...restProps} = props;
    return (
      <Item {...restProps} className={`starship-item ${className}`}  />
    )
  }

export default StarshipMenu