import to from 'to-case' ; import { INames } from '../types/Names' ; export const getNameFormats = ( name ) : INames => { return { title : to . title ( name ) , pascal : to . pascal ( name ) , snake : to . slug ( name ) , } ; } ; export const createDefaultName = ( name ) => { const snakeName = to . slug ( name ) ; if ( ! snakeName . includes ( '-' ) ) { return `${ snakeName }-component` ; } return snakeName ; } ;