diff --git a/explorer-nextjs/src/components/contentLayout/ContentLayout.tsx b/explorer-nextjs/src/components/contentLayout/ContentLayout.tsx new file mode 100644 index 0000000000..bfac848984 --- /dev/null +++ b/explorer-nextjs/src/components/contentLayout/ContentLayout.tsx @@ -0,0 +1,26 @@ +import { Box, type BoxProps } from "@mui/material"; + +export const ContentLayout = ({ + children, + component: Component = "div", + className, + sx, + ...rest +}: BoxProps) => { + return ( + + {children} + + ); +}; diff --git a/explorer-nextjs/src/components/countryFlag/CountryFlag.tsx b/explorer-nextjs/src/components/countryFlag/CountryFlag.tsx new file mode 100644 index 0000000000..783fbaf175 --- /dev/null +++ b/explorer-nextjs/src/components/countryFlag/CountryFlag.tsx @@ -0,0 +1,21 @@ +import { Stack, Typography } from "@mui/material"; +import Flag from "react-world-flags"; + +interface ICountryFlag { + countryCode: string; + countryName?: string; +} + +const CountryFlag = ({ countryCode, countryName }: ICountryFlag) => { + return ( + + + + {countryName} + + + ); +}; + +export default CountryFlag; +export type { ICountryFlag };