import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' // Mock component to avoid complex initialization issues const PromptEditorMock = ({ value, onChange, placeholder, editable, compact, className, wrapperClassName }: any) => { const [content, setContent] = useState(value || '') const handleChange = (e: React.ChangeEvent) => { setContent(e.target.value) onChange?.(e.target.value) } return (