mirror of
https://github.com/Nezumi-2711/mui-practice.git
synced 2026-09-22 05:31:56 +00:00
49 lines
944 B
React
49 lines
944 B
React
import React from "react";
|
|
|
|
import {Box, Typography} from "@mui/material";
|
|
|
|
const SearchNavItem = ({normalText, boldText, iconImg}) => {
|
|
return (
|
|
<Box sx={{
|
|
p: {
|
|
xs: 0.5,
|
|
lg: 2,
|
|
},
|
|
my: {
|
|
xs: 1,
|
|
md: 0
|
|
},
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: '16px',
|
|
}}>
|
|
<img src={iconImg} alt={""}/>
|
|
<Box>
|
|
<Typography
|
|
sx={{
|
|
fontFamily: 'Poppins',
|
|
fontWeight: '300',
|
|
fontSize: '14px',
|
|
color: '#5B5B5B',
|
|
}}
|
|
>
|
|
{normalText}
|
|
</Typography>
|
|
<Typography
|
|
sx={{
|
|
fontFamily: 'Poppins',
|
|
fontWeight: '500',
|
|
fontSize: '16px',
|
|
color: '#161414',
|
|
}}
|
|
>
|
|
{boldText}
|
|
</Typography>
|
|
</Box>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default SearchNavItem;
|