import React from 'react'; import { DistortionArea } from '../../types/area'; export interface AreaListProps { areas: DistortionArea[]; selectedAreaId: string | null; onSelectArea: (areaId: string) => void; onRemoveArea: (areaId: string) => void; onAddArea: () => void; } export const AreaList: React.FC = ({ areas, selectedAreaId, onSelectArea, onRemoveArea, onAddArea, }) => { return (

왜곡 영역

{areas.length === 0 ? (
영역이 없습니다. + 추가 버튼을 눌러주세요.
) : ( areas.map((area, index) => (
onSelectArea(area.id)} >
영역 {index + 1} 강도: {(area.distortionStrength * 100).toFixed(0)}%
)) )}
); };