UNPKG

@ozen-ui/kit

Version:

React component library

18 lines (17 loc) 416 B
import { NEXT, PAGE, PREVIOUS } from '../../constants'; export var getItemAriaLabel = function (_a) { var page = _a.page, type = _a.type, selected = _a.selected; if (type === NEXT) { return 'Next'; } if (type === PREVIOUS) { return 'Previous'; } if (selected) { return "Selected"; } if (type === PAGE) { return "".concat(page); } return ''; };