import { defineComponent, toRefs, createVNode } from 'vue';
import { useLocale } from '../config-provider/useLocale';
import getPrefixCls from '../_util/getPrefixCls';
import { COMPONENT_NAME } from './const';

const prefixCls = getPrefixCls('pagination');
var total = defineComponent({
  name: COMPONENT_NAME.PAGINATION_TOTAL,
  props: {
    total: {
      type: Number,
      default: 0
    }
  },
  setup(props) {
    const {
      total
    } = toRefs(props);
    const {
      t
    } = useLocale();
    return () => createVNode("div", {
      "class": `${prefixCls}-total`
    }, [t('pagination.total', {
      total: total.value
    })]);
  }
});

export { total as default };
