Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added LogPanel with manual refresh logic

TzeYiing23449f4b4abe
diff --git a/studio/components/ui/Logs/LogPanel.tsx b/studio/components/ui/Logs/LogPanel.tsx
new file mode 100644
index 00000000000..a420bcba7bb
--- /dev/null
+++ b/studio/components/ui/Logs/LogPanel.tsx
@@ -0,0 +1,26 @@
+import React from 'react'
+import { Button, Icon, Typography } from '@supabase/ui'
+interface Props {
+ title: string
+ onRefresh?: () => void
+ isLoading: boolean
+ children?: JSX.Element
+}
+
+/**
+ * Logs control panel header + wrapper
+ */
+export default ({ title, onRefresh, isLoading }: Props) => (
+
+ <div className="flex items-center justify-between w-full">
+ <Typography.Title level={5}>{title} </Typography.Title>
+ <Button
+ type="outline"
+ loading={isLoading}
+ disabled={isLoading ? true : false}
+ onClick={onRefresh}
+ >
+ Refresh
+ </Button>
+ </div>
+)
\ No newline at end of file