mirror of https://github.com/portainer/portainer
16 lines
294 B
TypeScript
16 lines
294 B
TypeScript
|
import { ReactNode } from 'react';
|
||
|
|
||
|
interface Props {
|
||
|
children?: ReactNode;
|
||
|
label: string;
|
||
|
}
|
||
|
|
||
|
export function DetailsRow({ label, children }: Props) {
|
||
|
return (
|
||
|
<tr>
|
||
|
<td>{label}</td>
|
||
|
{children && <td data-cy={`detailsTable-${label}Value`}>{children}</td>}
|
||
|
</tr>
|
||
|
);
|
||
|
}
|