|
|
|
@ -8,11 +8,9 @@ export default function Resources({ options }) {
|
|
|
|
|
<div className="flex flex-row space-x-4 self-center">
|
|
|
|
|
{options.cpu && <Cpu />}
|
|
|
|
|
{options.memory && <Memory />}
|
|
|
|
|
{Array.isArray(options.disk) ? (
|
|
|
|
|
options.disk.map((disk) => <Disk key={disk} options={{ disk }} />)
|
|
|
|
|
) : (
|
|
|
|
|
<Disk options={options} />
|
|
|
|
|
)}
|
|
|
|
|
{Array.isArray(options.disk)
|
|
|
|
|
? options.disk.map((disk) => <Disk key={disk} options={{ disk }} />)
|
|
|
|
|
: options.disk && <Disk options={options} />}
|
|
|
|
|
</div>
|
|
|
|
|
{options.label && (
|
|
|
|
|
<div className="ml-6 pt-1 text-center text-theme-800 dark:text-theme-200 text-xs">{options.label}</div>
|
|
|
|
|