mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
* 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>
23 lines
545 B
TypeScript
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
|