Files
magic-resume/src/components/editor/self-evaluation/SelfEvaluationPanel.tsx
T
2026-03-06 00:11:06 +08:00

31 lines
857 B
TypeScript

import { useResumeStore } from "@/store/useResumeStore";
import { cn } from "@/lib/utils";
import Field from "../Field";
const SelfEvaluationPanel = () => {
const { activeResume, updateSelfEvaluationContent } = useResumeStore();
const selfEvaluationContent = activeResume?.selfEvaluationContent ?? "";
const handleChange = (value: string) => {
updateSelfEvaluationContent(value);
};
return (
<div
className={cn(
"rounded-lg border p-4",
"bg-card",
"border-border"
)}
>
<Field
value={selfEvaluationContent}
onChange={handleChange}
type="editor"
placeholder="描述你的自我评价..."
/>
</div>
);
};
export default SelfEvaluationPanel;