mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
15 lines
294 B
TypeScript
15 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>
|
|
);
|
|
}
|