Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const memoize = require('@emotion/memoize').default
const isPropValid = require('@emotion/is-prop-valid').default
const systemProps = require('styled-system/props')
const regex = new RegExp(`^(${systemProps.join('|')})$`)
module.exports = memoize(prop => isPropValid(prop) && !regex.test(prop))