2026-03-02 18:31:49 +00:00
|
|
|
|
interface SqlObjectPropertiesProps {
|
|
|
|
|
|
object?: any
|
2026-02-24 20:44:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-02 18:31:49 +00:00
|
|
|
|
const SqlObjectProperties = ({ object }: SqlObjectPropertiesProps) => {
|
|
|
|
|
|
if (!object) {
|
2026-02-24 20:44:16 +00:00
|
|
|
|
return (
|
2026-03-02 18:31:49 +00:00
|
|
|
|
<div className="flex items-center justify-center h-full text-gray-400 text-sm">
|
|
|
|
|
|
Select an object to view properties
|
2026-02-24 20:44:16 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
2026-03-02 18:31:49 +00:00
|
|
|
|
<div className="p-4 text-sm">
|
|
|
|
|
|
<pre className="text-xs text-gray-600 dark:text-gray-400 overflow-auto">
|
|
|
|
|
|
{JSON.stringify(object, null, 2)}
|
|
|
|
|
|
</pre>
|
2026-02-24 20:44:16 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default SqlObjectProperties
|