"use client";
import { getFullImageUrl } from "@/lib/api/client";
import type { SignatureRendererProps, StampRendererProps } from "./types";
export function SignatureRenderer({ component }: SignatureRendererProps) {
const labelPos = component.labelPosition || "left";
const showLabel = component.showLabel !== false;
const labelText = component.labelText || "서명:";
return (
{showLabel && (
{labelText}
)}
{component.imageUrl ? (
})
) : (
서명 이미지
)}
);
}
export function StampRenderer({ component }: StampRendererProps) {
const showLabel = component.showLabel !== false;
const labelText = component.labelText || "(인)";
const personName = component.personName || "";
return (
{personName &&
{personName}
}
{component.imageUrl ? (
})
) : (
도장 이미지
)}
{showLabel && (
{labelText}
)}
);
}