import { useTranslation } from "@plexswap/localization"; import { styled, useTheme } from "styled-components"; import { Button, OpenNewIcon, Text } from "../../components"; import { Link } from "../../components/Link"; import getThemeValue from "../../util/getThemeValue"; import Modal from "./Modal"; interface NotEnoughTokensModalProps { tokenSymbol: string; tokenAddress?: string; onDismiss?: () => void; hideLocateAddress?: boolean; } const StyledLink = styled(Link)` width: 100%; `; const NotEnoughTokensModal: React.FC> = ({ tokenSymbol, tokenAddress, onDismiss, hideLocateAddress = false, }) => { const { t } = useTranslation(); const theme = useTheme(); return ( {t("Insufficient %symbol% balance", { symbol: tokenSymbol })} {t("You’ll need %symbol% to stake in this pool!", { symbol: tokenSymbol })} {t("Buy some %symbol%, or make sure your %symbol% isn’t in another pool or LP.", { symbol: tokenSymbol, })} {hideLocateAddress ? null : ( )} ); }; export default NotEnoughTokensModal;