diff --git a/apps/web/src/app/create/worksheets/addition/components/ConfigPanel.tsx b/apps/web/src/app/create/worksheets/addition/components/ConfigPanel.tsx
index 348fb395..716b0b0b 100644
--- a/apps/web/src/app/create/worksheets/addition/components/ConfigPanel.tsx
+++ b/apps/web/src/app/create/worksheets/addition/components/ConfigPanel.tsx
@@ -32,6 +32,7 @@ import type { DisplayRules } from '../displayRules'
import { getScaffoldingSummary } from './config-panel/utils'
import { SubOption } from './config-panel/SubOption'
import { ToggleOption } from './config-panel/ToggleOption'
+import { StudentNameInput } from './config-panel/StudentNameInput'
interface ConfigPanelProps {
formState: WorksheetFormState
@@ -203,28 +204,7 @@ export function ConfigPanel({ formState, onChange }: ConfigPanelProps) {
return (
{/* Student Name */}
-
onChange({ name: e.target.value })}
- placeholder="Student Name"
- className={css({
- w: 'full',
- px: '3',
- py: '2',
- border: '1px solid',
- borderColor: 'gray.300',
- rounded: 'lg',
- fontSize: 'sm',
- _focus: {
- outline: 'none',
- borderColor: 'brand.500',
- ring: '2px',
- ringColor: 'brand.200',
- },
- _placeholder: { color: 'gray.400' },
- })}
- />
+
onChange({ name })} />
{/* Digit Range Selector */}
void
+}
+
+export function StudentNameInput({ value, onChange }: StudentNameInputProps) {
+ return (
+ onChange(e.target.value)}
+ placeholder="Student Name"
+ className={css({
+ w: 'full',
+ px: '3',
+ py: '2',
+ border: '1px solid',
+ borderColor: 'gray.300',
+ rounded: 'lg',
+ fontSize: 'sm',
+ _focus: {
+ outline: 'none',
+ borderColor: 'brand.500',
+ ring: '2px',
+ ringColor: 'brand.200',
+ },
+ _placeholder: { color: 'gray.400' },
+ })}
+ />
+ )
+}