'use client'; import React from 'react'; import styled from 'styled-components'; import { theme } from '@/styles/theme'; const Pre = styled.pre` background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; font-size: 12px; line-height: 1.6; color: #a8c4e0; font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-height: 480px; overflow-y: auto; &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: rgba(240,246,252,0.15); border-radius: 2px; } `; const Empty = styled.div` padding: 32px; text-align: center; color: var(--text-secondary); font-size: 13px; `; interface ConfigViewerProps { content: string; } export default function ConfigViewer({ content }: ConfigViewerProps) { if (!content || content.trim() === '') return 설정 없음; return
{content}
; }