import type { Theme, SxProps } from "@mui/material/styles"; import { forwardRef } from "react"; import Box from "@mui/material/Box"; import NoSsr from "@mui/material/NoSsr"; import { CONFIG } from "../../../config"; // ---------------------------------------------------------------------- export type FlagIconProps = { code?: string; sx?: SxProps; }; export const FlagIcon = forwardRef( ({ code, sx, ...other }, ref) => { const baseStyles = { width: 26, height: 20, flexShrink: 0, overflow: "hidden", borderRadius: "5px", display: "inline-flex", bgcolor: "background.neutral", }; const renderFallback = ( ); if (!code) { return null; } return ( ); } );