const defaultLabels = {
  expand: 'Expand',
  collapse: 'Collapse'
};
function getLabel(isExpanded, expandLabel, collapseLabel) {
  if (!isExpanded) {
    return expandLabel || defaultLabels.expand;
  }
  return collapseLabel || defaultLabels.collapse;
}
export default getLabel;