import { extractInObject } from './../theme/tools/' ; import isEmpty from 'lodash.isempty' ; export const filterShadowProps = ( props , ignoredProps , OS ) => { if ( OS !== 'web' ) { return { ... ignoredProps , ... props } ; } let style = ignoredProps . style ?? { } ; let [ shadowProps , remainingProps ] = extractInObject ( props , [ 'shadowColor' , 'shadowOffset' , 'shadowOpacity' , 'shadowRadius' , ] ) ; if ( ! isEmpty ( shadowProps ) ) { style = { ... style , ... shadowProps } ; } return { ... remainingProps , ... ignoredProps , style } ; } ;