import { defaultSections } from "@reactive-resume/schema"; import { RichInput } from "@reactive-resume/ui"; import { cn } from "@reactive-resume/utils"; import { AiActions } from "@/client/components/ai-actions"; import { useResumeStore } from "@/client/stores/resume"; import { getSectionIcon } from "./shared/section-icon"; import { SectionOptions } from "./shared/section-options"; export const SummarySection = () => { const setValue = useResumeStore((state) => state.setValue); const section = useResumeStore( // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition (state) => state.resume.data.sections.summary ?? defaultSections.summary, ); return (
{getSectionIcon("summary")}

{section.name}

( { editor.commands.setContent(value, true); setValue("sections.summary.content", value); }} /> )} onChange={(value) => { setValue("sections.summary.content", value); }} />
); };