b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
18 lines
384 B
React
18 lines
384 B
React
import { Button } from '@/components/ui/button';
|
|
|
|
export default function Commander() {
|
|
return (
|
|
<div id="custom-commander" className="mt-4 flex flex-col gap-2">
|
|
<Button
|
|
id="send"
|
|
onClick={() =>
|
|
sendUserMessage('Hello from custom element', 'my_command')
|
|
}
|
|
>
|
|
{' '}
|
|
Send with command
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|