808ceba848
Co-authored-by: dylan <dfldylan@qq.com> Co-authored-by: jerry-yuan <i@jerryzone.cn>
26 lines
603 B
TypeScript
26 lines
603 B
TypeScript
import { DetailsTable } from '@@/DetailsTable';
|
|
|
|
interface SecurityOptRowProps {
|
|
securityOpts?: Array<string>;
|
|
}
|
|
|
|
export function SecurityOptRow({ securityOpts }: SecurityOptRowProps) {
|
|
if (!securityOpts || securityOpts.length === 0) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<DetailsTable.Row label="SecurityOpt">
|
|
<table className="table table-bordered table-condensed !m-0">
|
|
<tbody>
|
|
{securityOpts.map((value, index) => (
|
|
<tr key={index}>
|
|
<td>{value}</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
</DetailsTable.Row>
|
|
);
|
|
}
|