react-instantsearch
Version:
⚡ Lightning-fast search for React, by Algolia
20 lines (17 loc) • 694 B
JavaScript
import { _ as _$2 } from '@swc/helpers/esm/_object_spread.js';
import { _ as _$1 } from '@swc/helpers/esm/_object_spread_props.js';
import { _ } from '@swc/helpers/esm/_object_without_properties.js';
import React from 'react';
function ShowMoreButton(_0) {
var isShowingMore = _0.isShowingMore, translations = _0.translations, props = _(_0, [
"isShowingMore",
"translations"
]);
return /*#__PURE__*/ React.createElement("button", _$1(_$2({}, props), {
"aria-expanded": isShowingMore,
"aria-label": translations.showMoreButtonLabel
}), translations.showMoreButtonText({
isShowingMore: isShowingMore
}));
}
export { ShowMoreButton };