import { useState } from 'react'; import YamlEditor from './YamlEditor'; import './ResourceCard.css'; function ResourceCard({ resource, projectId, onUpdate, onClick }) { const [isExpanded, setIsExpanded] = useState(false); const [activeTab, setActiveTab] = useState('summary'); const toggleExpand = () => { setIsExpanded(!isExpanded); if (!isExpanded) { onClick && onClick(); } }; return (
ns: {resource.namespace}
)}{key}: {value}