1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00
portainer/app/react/components/DetailsTable/DetailsRow.tsx
Ali 58d66d3142
chore(prettier): add tailwind prettier plugin [EE-4809] (#8221)
* add prettier plugin

* apply tailwind prettier formatting
2023-02-13 10:04:24 +13:00

29 lines
563 B
TypeScript

import clsx from 'clsx';
import { ReactNode } from 'react';
interface Props {
children?: ReactNode;
label: string;
colClassName?: string;
className?: string;
}
export function DetailsRow({
label,
children,
colClassName,
className,
}: Props) {
return (
<tr className={className}>
<td className={clsx(colClassName, 'min-w-[150px] !break-normal')}>
{label}
</td>
{children && (
<td className={colClassName} data-cy={`detailsTable-${label}Value`}>
{children}
</td>
)}
</tr>
);
}