mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-17 19:07:41 +01:00
f62d6ed4fc
Chem Dispensers and Heaters now show pH again
24 lines
585 B
JavaScript
24 lines
585 B
JavaScript
import { Box } from '../../components';
|
|
|
|
export const BeakerContents = props => {
|
|
const { beakerLoaded, beakerContents } = props;
|
|
return (
|
|
<Box>
|
|
{!beakerLoaded && (
|
|
<Box color="label">
|
|
No beaker loaded.
|
|
</Box>
|
|
) || beakerContents.length === 0 && (
|
|
<Box color="label">
|
|
Beaker is empty.
|
|
</Box>
|
|
)}
|
|
{beakerContents.map(chemical => (
|
|
<Box key={chemical.name} color="label">
|
|
{chemical.volume} units of {chemical.name}, Purity: {chemical.purity}
|
|
</Box>
|
|
))}
|
|
</Box>
|
|
);
|
|
};
|