mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* ai refinements * ui fixes * space * reduce dot height * Fix prop type issue * Assign allowHoverEffect to ai assistant button and panel * Lint * Some lints --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
22 lines
500 B
TypeScript
22 lines
500 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"
|
|
onClick={() => {
|
|
setAiAssistantPanel({ open: !aiAssistantPanel.open })
|
|
}}
|
|
>
|
|
<AiIconAnimation allowHoverEffect size={20} />
|
|
</Button>
|
|
)
|
|
}
|
|
|
|
export default AssistantButton
|