Surface content research at top of post editor
This commit is contained in:
@@ -263,6 +263,8 @@ export function PostEditor({
|
||||
</select>
|
||||
</label>
|
||||
|
||||
{canEdit && pageId && <ContentResearchAssistant pageId={pageId} targets={targets} onApply={(nextTitle, nextCaption) => { setTitle(nextTitle); setCaption(nextCaption); setAiAssisted(true); }} />}
|
||||
|
||||
<label className="field">
|
||||
<span>ชื่อโพสต์ (ใช้ภายใน ไม่แสดงบนเพจ)</span>
|
||||
<input className="input" value={title} disabled={!canEdit} onChange={(e) => setTitle(e.target.value)} placeholder="เช่น โปรโมชั่นปลายเดือน" />
|
||||
@@ -276,8 +278,6 @@ export function PostEditor({
|
||||
|
||||
{!post && canEdit && pageId && <PostGenerationQueue key={pageId} pageId={pageId} targets={targets} plannedDay={plannedDay} initialTopic={initialDraft?.topic || title} />}
|
||||
|
||||
{canEdit && pageId && <ContentResearchAssistant pageId={pageId} targets={targets} onApply={(nextTitle, nextCaption) => { setTitle(nextTitle); setCaption(nextCaption); setAiAssisted(true); }} />}
|
||||
|
||||
{canEdit && pageId && (
|
||||
<CaptionAssistant
|
||||
pageId={pageId}
|
||||
|
||||
Reference in New Issue
Block a user