import { useState } from 'react'; interface CreateFeaturePageProps { onCreateFeature: (name: string) => void; onNavigateBack: () => void; } function CreateFeaturePage({ onCreateFeature, onNavigateBack }: CreateFeaturePageProps) { const [featureName, setFeatureName] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (featureName.trim()) { const sanitizedName = featureName.trim().replace(/\s+/g, '_'); onCreateFeature(sanitizedName); } }; return (

Test Case Creator

Create a New Feature

Define a new feature to begin creating test cases.

setFeatureName(e.target.value)} />

Note: Spaces will be replaced with underscores (_).

); } export default CreateFeaturePage;