mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
30 lines
804 B
TypeScript
30 lines
804 B
TypeScript
import ResultsDropdown from './ResultsDropdown'
|
|
import UtilityActions from './UtilityActions'
|
|
import UtilityTabResults from './UtilityTabResults'
|
|
|
|
export type UtilityPanelProps = {
|
|
id: string
|
|
isExecuting?: boolean
|
|
executeQuery: () => void
|
|
}
|
|
|
|
const UtilityPanel = ({ id, isExecuting, executeQuery }: UtilityPanelProps) => {
|
|
return (
|
|
<>
|
|
<div className="flex justify-between overflow-visible px-6 py-2">
|
|
<ResultsDropdown id={id} />
|
|
|
|
<div className="inline-flex items-center justify-end">
|
|
<UtilityActions id={id} isExecuting={isExecuting} executeQuery={executeQuery} />
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex-1 p-0 pt-0 pb-0">
|
|
<UtilityTabResults id={id} isExecuting={isExecuting} />
|
|
</div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default UtilityPanel
|