import path from 'path'; import { getTextCase } from '@utils/getTextCase'; export function getScreenEtaConfig(screenPath: string, screenName: string) { const screenTextCase = getTextCase(screenName); const screenComponentName = screenTextCase.pascal + 'Screen'; const outputPathComponent = path.resolve(screenPath, screenComponentName); const outputPathComponentFile = path.resolve( outputPathComponent, screenComponentName + '.tsx', ); return { data: { name: { screen: screenComponentName, }, outputPath: { screen: outputPathComponent, screenFile: outputPathComponentFile, }, }, utils: { getTextCase, }, }; }