/* ============================================================================= * B09_Draft_Print_UI.ts * 인쇄 미리보기 등록 입구(PLAN 302-1 · 초안) — B09 셸이 `import.meta.glob("./draft/*_UI.ts")` 로 불러올 때 * 좌측 하단 고정 줄(`DRAFT.actions`)에 [인쇄 미리보기] 단추 → #/b09-print(`…_Print_Route`) * draft 폴더째 지우면 단추 · 길 · 서버 길이 함께 사라짐 * ========================================================================== */ import type { RoutePath } from "@config/config_frontend"; import { createButton } from "@ui/ui_template_elements"; import { navigateTo } from "../../A00_Common/router"; import { DRAFT } from "../B09_Estimation_UI_Tabs"; import { ROUTE } from "./B09_Draft_Print_Route"; DRAFT.actions.push(() => { const button = createButton({ label: "인쇄 미리보기", variant: "ghost", onClick: () => navigateTo(ROUTE.path as RoutePath), }); button.dataset.b09Print = ""; return button; });