23 lines
699 B
React
Raw Normal View History

2022-08-27 00:55:13 +03:00
import Disk from "./disk";
import Cpu from "./cpu";
import Memory from "./memory";
2022-08-24 10:44:35 +03:00
export default function Resources({ options }) {
return (
<>
2022-09-03 12:40:04 +03:00
<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">
2022-08-27 00:55:13 +03:00
{options.cpu && <Cpu />}
{options.memory && <Memory />}
2022-09-03 12:40:04 +03:00
{options.disk && <Disk options={options} />}
2022-08-24 10:44:35 +03:00
</div>
2022-08-27 00:55:13 +03:00
{options.label && (
<div className="border-t-2 border-theme-800 dark:border-theme-200 mt-1 pt-1 text-center text-theme-800 dark:text-theme-200 text-xs">
{options.label}
2022-08-24 10:44:35 +03:00
</div>
2022-08-27 00:55:13 +03:00
)}
</div>
2022-08-24 10:44:35 +03:00
</>
);
}