import * as tslib_1 from "tslib";
import WidgetBase from '@dojo/framework/core/WidgetBase';
import { v } from '@dojo/framework/core/vdom';
import I18nMixin from '@dojo/framework/core/mixins/I18n';
import ThemedMixin, { theme } from '@dojo/framework/core/mixins/Themed';
import bundle from './nls/Grid';
import * as css from '../theme/default/grid-footer.m.css';
let Footer = class Footer extends I18nMixin(ThemedMixin(WidgetBase)) {
    render() {
        const { total, page, pageSize } = this.properties;
        const { format } = this.localizeBundle(bundle);
        const footer = total !== undefined
            ? format('pageOfTotal', {
                page,
                totalPages: Math.ceil(total / pageSize),
                totalRows: total
            })
            : format('pageOfUnknownTotal', { page });
        return v('div', { classes: this.theme(css.root) }, [footer]);
    }
};
Footer = tslib_1.__decorate([
    theme(css)
], Footer);
export default Footer;

/*# sourceMappingURL=Footer.mjs.map*/