import { Transform } from 'jscodeshift' ; import { renameImports } from './utils' ; const transform = ( file , api ) => { const j = api . jscodeshift ; const root = j ( file . source ) ; return renameImports ( api , root , '@workday/canvas-kit-react/cookie-banner' , { CookieBanner : 'DeprecatedCookieBanner' , CookieBannerProps : 'DeprecatedCookieBannerProps' , } ) . toSource ( ) ; } ; export default transform ;