/**
* @license
* SPDX-License-Identifier: Apache-2.0
*/
import React from 'react';
import type { ActiveEditor } from '../lib/types';
interface AiCoPilotPanelProps {
activeEditor: ActiveEditor | null;
onRefine: (instruction: string) => void;
isLoading: boolean;
}
export default function AiCoPilotPanel({ activeEditor, onRefine, isLoading }: AiCoPilotPanelProps) {
if (!activeEditor) {
return (
Click on a section in your resume to activate the AI Co-pilot.
);
}
const refinementActions = [
{ instruction: "Rewrite this section to be more impactful.", label: "Rewrite for Impact", icon: "ph-shooting-star" },
{ instruction: "Make this section more concise.", label: "Make More Concise", icon: "ph-arrows-in-simple" },
{ instruction: "Rephrase this using stronger, professional action verbs.", label: "Use Stronger Verbs", icon: "ph-rocket-launch" },
{ instruction: "Generate 3 alternative bullet points based on this content.", label: "Suggest Bullet Points", icon: "ph-list-bullets" },
];
return (