[as] feat: 재원협의 기술검토 로직 작업

This commit is contained in:
2026-09-11 17:02:09 +09:00
parent 01d5ed297e
commit d1ccddc1d3
16 changed files with 415 additions and 21 deletions
@@ -6,6 +6,7 @@ import { Button } from "@common/components";
interface HangulGiangiToolbarProps {
isBusy?: boolean;
canSave?: boolean;
onSave: () => void;
onDownload: () => void;
onFullscreen: () => void;
@@ -13,16 +14,19 @@ interface HangulGiangiToolbarProps {
function HangulGiangiToolbar({
isBusy = false,
canSave = true,
onSave,
onDownload,
onFullscreen,
}: HangulGiangiToolbarProps) {
return (
<div className="flex w-full flex-nowrap items-center gap-2 border-b border-border bg-background p-3">
<Button type="button" color="white" size="sm" disabled={isBusy} onClick={onSave}>
<Save className="!size-5" />
저장
</Button>
{canSave && (
<Button type="button" color="white" size="sm" disabled={isBusy} onClick={onSave}>
<Save className="!size-5" />
저장
</Button>
)}
<Button type="button" color="white" size="sm" disabled={isBusy} onClick={onDownload}>
<Download className="!size-5" />
다운로드
@@ -21,6 +21,7 @@ function HangulGiangi({
documentFileName,
onSaveDocument,
onDownload,
canSave = true,
bridgeUrl = DEFAULT_BRIDGE_URL,
ctrlBaseUrl = WEBHYP_CTRL_URL,
className,
@@ -183,6 +184,7 @@ function HangulGiangi({
>
<HangulGiangiToolbar
isBusy={isBusy || !isCtrlReady}
canSave={canSave}
onSave={handleSave}
onDownload={handleDownload}
onFullscreen={handleFullscreen}
@@ -296,6 +298,7 @@ interface HangulGiangiProps {
documentFileName: string;
onSaveDocument: (file: Blob) => Promise<void>;
onDownload: () => Promise<void>;
canSave?: boolean;
bridgeUrl?: string;
ctrlBaseUrl?: string;
className?: string;