ReactJS
14 строк · 377.0 Байт
1import React from 'react';
2import styles from './searchblock.css';
3import {UserBlock} from "./UserBlock";
4import {userContext} from "../../context/userContext";
5
6
7export function SearchBlock() {
8const {iconImg, name} = React.useContext(userContext);
9return (
10<div className={styles.searchBlock}>
11<UserBlock avatarSrc={iconImg} username={name}/>
12</div>
13);
14}
15