This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
hypixel-helper/client/src/components/StackItem.jsx

24 lines
599 B
JavaScript

import React from 'react';
import { Paper, Typography } from '@mui/material';
import { styled } from '@mui/material/styles';
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff',
...theme.typography.body2,
padding: theme.spacing(1),
textAlign: 'center',
color: theme.palette.text.secondary,
}));
function StackItem({ text, children }) {
return (
<Item>
<Typography variant='h6'>{text}</Typography>
<hr />
{children}
</Item>
);
}
export default StackItem;