'use strict';
import { isPascalCase } from '@flint/infra/analysis/name-analysis';
import { nodeTypes } from '@flint/infra/analysis/function-analysis';
import { commonLowerCaseWords } from '../../../base-repo/constants/internal-common-strings.js';
import { reactHooks } from '../../../base-repo/constants/react-hooks.js';
import _0x1869d0__default from 'path';

var __defProp=Object['defineProperty'],__name=(_0x4a0cea,_0xa08a02)=>__defProp(_0x4a0cea,'name',{'value':_0xa08a02,'configurable':!![]});const constants={'props':commonLowerCaseWords['props']};function isComponentFile(_0x167708){const _0x2a659d=/.[jt]sx$/,{name:_0x31a684,ext:_0x49c50b}=_0x1869d0__default['parse'](_0x167708);return isPascalCase(_0x31a684)&&_0x2a659d['test'](_0x49c50b);}__name(isComponentFile,'isComponentFile');function isReactProps(_0x4994be){return _0x4994be['type']===nodeTypes['memberExpression']&&_0x4994be['object']['type']===nodeTypes['identifier']&&_0x4994be['object']['name']===constants['props'];}__name(isReactProps,'isReactProps');function isUseState(_0x2c9881){return _0x2c9881['type']===nodeTypes['callExpression']&&_0x2c9881['callee']['type']===nodeTypes['identifier']&&_0x2c9881['callee']['name']===reactHooks['useState'];}__name(isUseState,'isUseState');

export { isComponentFile, isReactProps, isUseState };
