`backend` 옆에 `front` 가 있을 이유가 없었다. negosium 의 negodata/front 를 그대로 베꼈고 그게 왜 front 인지는 따져보지 않았다 — 근거 없이 들여온 이름이라 바로잡는다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uYhHQdssRubirPirrdJJC
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import type {ReactNode} from 'react';
|
|
import {ArrowRight} from 'lucide-react';
|
|
import {Button} from '@/components/ui/button';
|
|
|
|
interface WizardFooterProps {
|
|
hint?: ReactNode;
|
|
onPrev?: () => void;
|
|
onNext: () => void;
|
|
nextLabel: string;
|
|
nextDisabled?: boolean;
|
|
}
|
|
|
|
/** 위저드 3단계가 공유하는 하단 고정 CTA 바. */
|
|
export function WizardFooter({
|
|
hint,
|
|
onPrev,
|
|
onNext,
|
|
nextLabel,
|
|
nextDisabled,
|
|
}: WizardFooterProps) {
|
|
return (
|
|
<div className="safe-b sticky bottom-0 z-30 w-full border-t border-border bg-card/95 px-4 py-3 backdrop-blur-md sm:px-6 lg:px-8">
|
|
<div className="mx-auto flex max-w-5xl flex-col items-center justify-between gap-3 sm:flex-row">
|
|
<div className="text-center text-xs text-muted-foreground sm:text-left">{hint}</div>
|
|
<div className="flex w-full items-center justify-end gap-2 sm:w-auto">
|
|
{onPrev && (
|
|
<Button variant="outline" onClick={onPrev}>
|
|
이전
|
|
</Button>
|
|
)}
|
|
<Button
|
|
variant="primary"
|
|
onClick={onNext}
|
|
disabled={nextDisabled}
|
|
className="flex-1 sm:flex-none"
|
|
>
|
|
<span>{nextLabel}</span>
|
|
<ArrowRight />
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|