Remove unused

This commit is contained in:
Manav Rathi
2024-08-01 20:51:44 +05:30
parent 0a03df9242
commit cd73a736f4

View File

@@ -1,64 +0,0 @@
import { SpaceBetweenFlex } from "@ente/shared/components/Container";
import ChevronRight from "@mui/icons-material/ChevronRight";
import Done from "@mui/icons-material/Done";
import { Box, Button } from "@mui/material";
import { t } from "i18next";
export function PlanIconButton({
current,
onClick,
}: {
current: boolean;
onClick: () => void;
}) {
return (
<Box mt={6}>
{current ? (
<CurrentPlanTileButton />
) : (
<NormalPlanTileButton onClick={onClick} />
)}
</Box>
);
}
function CurrentPlanTileButton() {
return (
<Button
color="accent"
disabled={true}
sx={(theme) => ({
"&&": {
color: theme.colors.accent.A500,
borderColor: theme.colors.accent.A500,
},
})}
fullWidth
onClick={() => null}
variant={"outlined"}
>
<SpaceBetweenFlex>
{t("active")}
<Done />
</SpaceBetweenFlex>
</Button>
);
}
function NormalPlanTileButton({ onClick }) {
return (
<Button
color="accent"
sx={(theme) => ({
border: `1px solid ${theme.colors.accent.A500}`,
})}
fullWidth
onClick={onClick}
variant={"contained"}
>
<SpaceBetweenFlex>
{t("SUBSCRIBE")}
<ChevronRight />
</SpaceBetweenFlex>
</Button>
);
}