import { useStore } from '../store' /** 실행/취소 + 옵션(임계값, 동시성, 검출기) */ export function RunControl(): JSX.Element { const { source, outputRoot, profiles, options, phase } = useStore((s) => ({ source: s.source, outputRoot: s.outputRoot, profiles: s.profiles, options: s.options, phase: s.phase })) const setOptions = useStore((s) => s.setOptions) const startJob = useStore((s) => s.startJob) const cancelJob = useStore((s) => s.cancelJob) const resetJob = useStore((s) => s.resetJob) const hasDescriptors = profiles.some((p) => p.descriptors.length > 0) const canRun = !!source && !!outputRoot && phase !== 'running' const running = phase === 'running' return (

3. 실행 옵션

{!hasDescriptors && (

⚠️ 등록된 얼굴이 없습니다. 매칭 인물 없이 모두 [미정]으로 분류됩니다.

)}
{!running ? ( ) : ( )} {phase === 'done' && ( )}
) }