import { type ASTPath, type JSXAttribute, type JSXElement } from 'jscodeshift'; export const getJSXAttributes: (jsxElementPath: ASTPath) => JSXAttribute[] = ( jsxElementPath: ASTPath, ) => jsxElementPath.node.openingElement.attributes as JSXAttribute[];