You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Disk from "./disk";
|
|
|
|
import Cpu from "./cpu";
|
|
|
|
import Memory from "./memory";
|
|
|
|
|
|
|
|
export default function Resources({ options }) {
|
|
|
|
return (
|
|
|
|
<div className="flex flex-col max-w:full basis-1/2 sm:basis-auto self-center">
|
|
|
|
<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} />
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
{options.label && (
|
|
|
|
<div className="ml-6 pt-1 text-center text-theme-800 dark:text-theme-200 text-xs">{options.label}</div>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|