'use client' import { User } from 'lucide-react' import { cn } from '@/lib/utils' import type { KriEditorProps } from './types' type KkoEditorProps = Omit & { mode: 'kko' } export function KriEditorKko({ label, value, placeholder = '미리볼 내용이 없습니다.', className, kkoTitle = '', kkoSenderName = '', kkoHeaderLabel = '알림톡 도착', }: KkoEditorProps) { const body = value ?? '' return (
{label ?
{label}
: null}
{kkoSenderName ? (
{kkoSenderName}
) : null}
{kkoSenderName ? (
{kkoSenderName}
) : null}
{kkoHeaderLabel}
{kkoTitle ?
{kkoTitle}
: null} {body.trim() ? (
{body}
) : (
{placeholder}
)}
) }