import { kebabCase } from '@/cli/utilities/string/kebab-case'; import { v4 } from 'uuid'; export const getFrontComponentBaseFile = ({ name, universalIdentifier = v4(), }: { name: string; universalIdentifier?: string; }) => { const kebabCaseName = kebabCase(name); return `import { defineFrontComponent } from 'twenty-sdk/define'; // React component - implement your UI here const Component = () => { return (

My new component!

This is your front component: ${kebabCaseName}

); }; export default defineFrontComponent({ universalIdentifier: '${universalIdentifier}', name: '${kebabCaseName}', description: 'Add a description for your front component', component: Component, }); `; };