import { sprinkles , Sprinkles } from './sprinkles.css' ; function isAtomsProp ( key ) { return sprinkles . properties . has ( key as keyof Sprinkles ) ; } export function splitProps < T extends { [ key ] : any ; } > ( props ) { const atomProps = { } ; const nativeProps = { } ; for ( const key in props ) { if ( isAtomsProp ( key ) ) { atomProps [ key ] = props [ key as keyof typeof props ] ; } else { nativeProps [ key ] = props [ key as keyof typeof props ] ; } } return { atomProps , nativeProps , } ; }