Files
supabase/apps/studio/components/layouts/AppLayout/AssistantButton.tsx
T
Saxon FletcherandJoshen Lim fcfc1cf38f Assistant refinements (#30759)
* message enter

* auth prompt

* style changes to message

* header assistant button

* more auth prompt

* prompt

* prompt user refine

* iteration of read only

* Add basic tests for AIAssistant.utils

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-12-02 14:46:11 +08:00

23 lines
545 B
TypeScript

import { useAppStateSnapshot } from 'state/app-state'
import { AiIconAnimation, Button } from 'ui'
const AssistantButton = () => {
const { setAiAssistantPanel, aiAssistantPanel } = useAppStateSnapshot()
return (
<Button
type="text"
size="tiny"
id="assistant-trigger"
className="h-full w-full rounded-none"
onClick={() => {
setAiAssistantPanel({ open: !aiAssistantPanel.open })
}}
>
<AiIconAnimation allowHoverEffect size={20} />
</Button>
)
}
export default AssistantButton