import type { WebClientBeanInfo } from '../../api/bypassApi'; interface BypassStepBasicProps { domainName: string; displayName: string; webclientBean: string; externalPath: string; httpMethod: string; description: string; webclientBeans: WebClientBeanInfo[]; isEdit: boolean; onChange: (field: string, value: string) => void; } export default function BypassStepBasic({ domainName, displayName, webclientBean, externalPath, httpMethod, description, webclientBeans, isEdit, onChange, }: BypassStepBasicProps) { return (

BYPASS API의 기본 정보를 입력하세요. 도메인명을 기반으로 코드가 생성됩니다.

{/* 도메인명 */}
onChange('domainName', e.target.value)} disabled={isEdit} placeholder="예: riskByImo" pattern="[a-zA-Z][a-zA-Z0-9]*" className={[ 'w-full px-3 py-2 text-sm rounded-lg border', 'border-wing-border bg-wing-card text-wing-text', 'placeholder:text-wing-muted focus:outline-none focus:ring-2 focus:ring-wing-accent/50', isEdit ? 'opacity-50 cursor-not-allowed' : '', ].join(' ')} />

영문 소문자/숫자 조합 (수정 불가)

{/* 표시명 */}
onChange('displayName', e.target.value)} placeholder="예: IMO 기반 리스크 조회" className="w-full px-3 py-2 text-sm rounded-lg border border-wing-border bg-wing-card text-wing-text placeholder:text-wing-muted focus:outline-none focus:ring-2 focus:ring-wing-accent/50" />
{/* WebClient */}
{/* 외부 API 경로 */}
onChange('externalPath', e.target.value)} placeholder="/RiskAndCompliance/RisksByImos" className="w-full px-3 py-2 text-sm rounded-lg border border-wing-border bg-wing-card text-wing-text placeholder:text-wing-muted focus:outline-none focus:ring-2 focus:ring-wing-accent/50" />
{/* HTTP 메서드 */}
{['GET', 'POST'].map((method) => ( ))}
{/* 설명 */}