import { Copy } from 'lucide-react'; import { FormDialog } from '@/components/FormDialog'; import { STRING_FORMAT_OPTIONS, type RedisLineEditorState } from '../types'; import { formatStringByMode } from '../utils'; interface RedisLineEditorDialogProps { state: RedisLineEditorState; readOnlyField?: boolean; saving?: boolean; onChange: (state: RedisLineEditorState) => void; onClose: () => void; onConfirm: () => void; onCopy?: (value: string) => void; } export function RedisLineEditorDialog({ state, readOnlyField, saving, onChange, onClose, onConfirm, onCopy, }: RedisLineEditorDialogProps) { return ( }>
Size: {new TextEncoder().encode(state.value).length}B