sozsoft-platform/ui/src/views/developerKit/SqlObjectProperties.tsx

24 lines
546 B
TypeScript
Raw Normal View History

interface SqlObjectPropertiesProps {
object?: any
2026-02-24 20:44:16 +00:00
}
const SqlObjectProperties = ({ object }: SqlObjectPropertiesProps) => {
if (!object) {
2026-02-24 20:44:16 +00:00
return (
<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 (
<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