import { useState } from "react"; import { Editor } from "@tiptap/core"; import { Button } from "@radix-ui/themes"; import { Cross2Icon, GearIcon } from '@radix-ui/react-icons' import * as Dialog from '@radix-ui/react-dialog' import * as Tabs from '@radix-ui/react-tabs' import Select from 'react-select'; import { ARTICLE_TYPE_OPTIONS } from "@/editor/defs/type-options.type"; // all options // don't delete this const allArticleTypeOptions = [ { value: 'essay', label: 'Essay' }, { value: 'article', label: 'Article' }, { value: 'blog_post', label: 'Blog Post' }, { value: 'poetry', label: 'Poetry' }, { value: 'short_story', label: 'Short Story' }, { value: 'technical_writing', label: 'Technical Writing' }, { value: 'creative_writing', label: 'Creative Writing' }, { value: 'research_paper', label: 'Research Paper' }, { value: 'journalism', label: 'Journalism' }, { value: 'business_writing', label: 'Business Writing' }, { value: 'script', label: 'Script' }, { value: 'resume', label: 'Resume' }, { value: 'letter', label: 'Letter' }, { value: 'speech', label: 'Speech' }, { value: 'review', label: 'Review' }, { value: 'proposal', label: 'Proposal' }, ]; const articleRoleOptions = [ { value: 'author', label: ' Author' }, { value: 'editor', label: 'Editor' }, { value: 'contributor', label: 'Contributor' }, { value: 'interviewer', label: 'Interviewer' }, { value: 'reviewer', label: 'Reviewer' }, { value: 'researcher', label: 'Researcher' }, { value: 'co-author', label: 'Co-Author' }, { value: 'ghostwriter', label: 'Ghostwriter' }, { value: 'editorial_board_member', label: 'Editorial Board Member' }, { value: 'columnist', label: 'Columnist' }, { value: 'correspondent', label: 'Correspondent' }, { value: 'proofreader', label: 'Proofreader' }, ]; const feelLikeOptions = [ { value: 'informative', label: 'Informative' }, { value: 'inspirational', label: 'Inspirational' }, { value: 'educational', label: 'Educational' }, { value: 'entertaining', label: 'Entertaining' }, { value: 'thought-provoking', label: 'Thought-Provoking' }, { value: 'humorous', label: 'Humorous' }, { value: 'serious', label: 'Serious' }, { value: 'uplifting', label: 'Uplifting' }, { value: 'reflective', label: 'Reflective' }, { value: 'engaging', label: 'Engaging' }, { value: 'controversial', label: 'Controversial' }, { value: 'insightful', label: 'Insightful' }, { value: 'emotional', label: 'Emotional' }, { value: 'motivational', label: 'Motivational' }, { value: 'captivating', label: 'Captivating' }, ]; export const Settings = ({ editor }: { editor: Editor }) => { const [articleType, setArticleType] = useState(ARTICLE_TYPE_OPTIONS[0]); const [articleRole, setArticleRole] = useState(articleRoleOptions[0]); const [articleFeel, setArticleFeel] = useState(feelLikeOptions[0]); return
)