mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-13 03:08:48 +01:00
29 lines
755 B
TypeScript
29 lines
755 B
TypeScript
import { Box, Stack, Typography, styled, useTheme } from "@mui/material";
|
|
|
|
const StackItem = styled(Stack)(({ theme }) => ({
|
|
...theme.typography.body2,
|
|
margin: "0 !important",
|
|
padding: 0,
|
|
textAlign: "left",
|
|
justifyContent: "flex-start",
|
|
alignItems: "center",
|
|
}));
|
|
|
|
export const NoPlanetCard = () => {
|
|
const theme = useTheme();
|
|
return (
|
|
<StackItem
|
|
alignItems="flex-start"
|
|
height="100%"
|
|
minHeight={theme.custom.cardMinHeight}
|
|
>
|
|
<Box
|
|
width={theme.custom.cardImageSize}
|
|
height={theme.custom.cardImageSize}
|
|
style={{ borderRadius: 8, marginRight: 4, backgroundColor: "#101010" }}
|
|
/>
|
|
<Typography fontSize={theme.custom.smallText}>No planet</Typography>
|
|
</StackItem>
|
|
);
|
|
};
|