mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-24 13:16:16 +01:00
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>
|
|
);
|
|
};
|