@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
14 lines (10 loc) • 327 B
JavaScript
import t from '@instructure/quiz-i18n/format-message'
export function numericMessage(type) {
return t('{type} must be a number', {type})
}
export function presenceMessage(type) {
return t('{type} cannot be blank', {type})
}
export function noDuplicatesMessage(type) {
return t('{type} cannot be duplicated', {type})
}