'use client'; import React from 'react'; import styled from 'styled-components'; const Textarea = styled.textarea` width: 100%; min-height: 400px; background: #0a0e14; border: 1px solid #1e2430; border-radius: 8px; color: #a8c4e0; font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; padding: 16px; resize: vertical; outline: none; tab-size: 2; &:focus { border-color: #58A6FF; } &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: #1e2430; border-radius: 2px; } `; interface CodeEditorProps { value: string; onChange: (v: string) => void; readOnly?: boolean; } export default function CodeEditor({ value, onChange, readOnly }: CodeEditorProps) { return (