components

This commit is contained in:
Tatiana Nikolaeva 2025-04-04 21:41:22 +05:00
commit 009a214b40
40 changed files with 966 additions and 0 deletions

View file

@ -0,0 +1,9 @@
/*Header.module.css*/
.header{
margin: 0;
padding: 0;
width: 100%;
display: flex;
/*justify-content: space-between;*/
}

View file

@ -0,0 +1,28 @@
import React, {useState} from "react";
import Logo from "../Logo/Logo.tsx";
import Account from "../Account/Account.tsx";
import styles from './Header.module.css'
import SurveyPagesList from "../SurveyPagesList/SurveyPagesList.tsx";
interface HeaderProps {}
const Header: React.FC<HeaderProps> = () => {
const [activePage, setActivePage] = useState('Создать опрос');
const handlePageClick = (name: string)=> {
setActivePage(name);
}
return (
<div className={styles.header}>
<Logo href='' />
<SurveyPagesList
activePage={activePage}
onPageClick = {handlePageClick}
/>
<Account href='' />
</div>
);
};
export default Header;