import memoize from '@emotion/memoize'
declare var codegen: { require: string => RegExp }
const reactPropsRegex = codegen.require('./props')
const isPropValid = memoize(
prop =>
reactPropsRegex.test(prop) ||
(prop.charCodeAt(0) === 111 &&
prop.charCodeAt(1) === 110 &&
prop.charCodeAt(2) < 91)
)
export default isPropValid