mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
24 lines
621 B
TypeScript
24 lines
621 B
TypeScript
import * as Tooltip from '@radix-ui/react-tooltip'
|
|
import { Code2, Wand } from 'lucide-react'
|
|
import { Button } from 'ui'
|
|
import { useAppStateSnapshot } from 'state/app-state'
|
|
import { AiIconAnimation } from 'ui'
|
|
|
|
const InlineEditorButton = () => {
|
|
const { setInlineEditorPanel, inlineEditorPanel } = useAppStateSnapshot()
|
|
|
|
return (
|
|
<Button
|
|
type="text"
|
|
id="inline-editor-trigger"
|
|
className="w-6 h-6"
|
|
onClick={() => {
|
|
setInlineEditorPanel({ open: !inlineEditorPanel.open })
|
|
}}
|
|
icon={<Code2 size={20} strokeWidth={1.5} />}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default InlineEditorButton
|