import React from 'react';
import PropTypes from 'prop-types';

interface CascaderMenuItemProps {
  className?: string;
  onClick?: any;
  style?: any;
}

class CascaderMenuItem extends React.Component<CascaderMenuItemProps, {}> {
  // shouldComponentUpdate(nextProps: CascaderMenuItemProps, nextState: { }) {
  //     return this.props.className != nextProps.className;
  // }

  render() {
    const { className, ...rest } = this.props;
    return <div className={this.props.className} {...rest} />;
  }
}

export default class CascaderMenu extends React.Component<
  CascaderMenuItemProps,
  {}
> {
  static Item = CascaderMenuItem;

  render() {
    const { className, ...rest } = this.props;
    return <div className="cn-addr-caslist" {...rest} />;
  }
}
