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/page-header' , { PageHeader : 'DeprecatedPageHeader' , PageHeaderProps : 'DeprecatedPageHeaderProps' , } ) . toSource ( ) ; } ; export default transform ;