/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable react/require-default-props */
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';

// component - CoreUI / CSidebarNavDivider

const CSidebarNavDivider = (props: any) => {
  const {
    className,
    //
    innerRef,
    ...attributes
  } = props;

  // render

  const classes = classNames('c-sidebar-nav-divider', className);

  if (attributes.nextProps) {
    delete attributes.nextProps;
  }

  return (
    <>
      <li className={classes} {...attributes} ref={innerRef} />
    </>
  );
};

CSidebarNavDivider.propTypes = {
  className: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.array,
    PropTypes.object,
  ]),
  //
  innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
};

export default CSidebarNavDivider;
