function Pagination(props) {
  const {
    className,
    listClassName,
    cssModule,
    size,
    tag: Tag = 'nav',
    listTag: ListTag = 'ul',
    'aria-label': label = 'pagination',
    ...attributes
  } = props;

  const classes = mapToCssModules(classNames(className), cssModule);

  const listClasses = mapToCssModules(
    classNames(listClassName, 'pagination', {
      [`pagination-${size}`]: !!size,
    }),
    cssModule,
  );

  return (
    <Tag className={classes} aria-label={label}>
      <ListTag {...attributes} className={listClasses} />
    </Tag>
  );
}
Set a custom element for list component