mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-06-02 07:43:34 +02:00
31 lines
857 B
TypeScript
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;
|