sozsoft-platform/ui/src/views/developerKit/SqlObjectProperties.tsx
2026-03-02 21:31:49 +03:00

23 lines
546 B
TypeScript

interface SqlObjectPropertiesProps {
object?: any
}
const SqlObjectProperties = ({ object }: SqlObjectPropertiesProps) => {
if (!object) {
return (
<div className="flex items-center justify-center h-full text-gray-400 text-sm">
Select an object to view properties
</div>
)
}
return (
<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>
</div>
)
}
export default SqlObjectProperties