{
+
+ getTableRow(index: number) {
+ const {pods} = this.props;
+ return (
+
+ {pods[index].getName()}
+ {pods[index].getAge()}
+ {pods[index].getStatus()}
+
+ )
+ }
+
+ render() {
+ const {pods} = this.props
+ if (!pods?.length) {
+ return null;
+ }
+
+ return (
+
+
+
+ Name
+ Age
+ Status
+
+ {
+ pods.map((pod, index) => this.getTableRow(index))
+ }
+
+
+ )
+ }
+}
+```
+
+`PodsDetailsList` produces a simple table showing a list of the pods found in this namespace:
+
+
+
+ For each pod the name, age, and status are obtained using the `K8sApi.Pod` methods. The table is constructed using the `Component.Table` and related elements. See [`Component` documentation](url?) for further details.
\ No newline at end of file