'use client' import type { FC } from 'react' import * as React from 'react' import { useRef } from 'react' import { cn } from '@/utils/classnames' type ParagraphInputProps = { value: string onChange: (value: string) => void placeholder?: string disabled?: boolean className?: string } const ParagraphInput: FC = ({ value, onChange, placeholder, disabled = false, className, }) => { const textareaRef = useRef(null) const lines = value ? value.split('\n') : [''] const lineCount = Math.max(3, lines.length) return (
{Array.from({ length: lineCount }, (_, index) => ( {String(index + 1).padStart(2, '0')} ))}