import { Button } from '@gitroom/react/form/button'; import React, { FC } from 'react'; import { useCopilotAction, useCopilotReadable } from '@copilotkit/react-core'; export const AddPostButton: FC<{ onClick: () => void; num: number }> = ( props ) => { const { onClick, num } = props; useCopilotAction({ name: 'addPost_' + num, description: 'Add a post after the post number ' + (num + 1), handler: () => { onClick(); }, }); return ( ); };