bananas-commerce-admin
Version:
What's this, an admin for apes?
10 lines • 758 B
JavaScript
import React from "react";
import { Box, FormControlLabel, Switch, Typography } from "@mui/material";
import { useI18n } from "../../../contexts/I18nContext";
const ExchangeSwitch = ({ checked, onChange, disabled }) => {
const { t } = useI18n();
return (React.createElement(Box, { position: "absolute", right: 16, top: 16 },
React.createElement(FormControlLabel, { checked: checked, control: React.createElement(Switch, { color: "primary", size: "small" }), disabled: disabled, label: React.createElement(Typography, { color: "textSecondary", variant: "caption" }, t("Exchange")), labelPlacement: "end", sx: { margin: 0, gap: 0.5 }, onChange: () => onChange() })));
};
export default ExchangeSwitch;
//# sourceMappingURL=ExchangeSwitch.js.map