UNPKG

react-dates

Version:

A responsive and accessible date range picker component built with React

9 lines (7 loc) 182 B
export default function getPhrase(phrase, args) { if (typeof phrase === 'string') return phrase; if (typeof phrase === 'function') { return phrase(args); } return ''; }