Files
ALwrity/frontend/src/components/BlogWriter/RegisterBlogWriterActions.tsx
2025-09-12 10:26:08 +05:30

22 lines
573 B
TypeScript

import { useCopilotAction } from '@copilotkit/react-core';
const useCopilotActionTyped = useCopilotAction as any;
export const RegisterBlogWriterActions: React.FC = () => {
useCopilotActionTyped({
name: 'Generate All Sections of Outline',
description: 'Generate content for every section in the current outline',
parameters: [],
handler: async () => {
// Frontend-only placeholder; generation handled via individual actions in UI for now
return { success: true };
},
});
return null;
};
export default RegisterBlogWriterActions;