first commit
This commit is contained in:
7
app/components/Header/Logo.tsx
Normal file
7
app/components/Header/Logo.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
export default function Logo() {
|
||||
return (
|
||||
<div>Logo</div>
|
||||
);
|
||||
}
|
||||
10
app/components/Header/Menu.tsx
Normal file
10
app/components/Header/Menu.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
|
||||
export default function Menu({name} : any) {
|
||||
return (
|
||||
<div>
|
||||
{name}
|
||||
<div>Menu</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
17
app/components/Header/index.tsx
Normal file
17
app/components/Header/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import Logo from '@/components/Header/Logo';
|
||||
import Menu from '@/components/Header/Menu';
|
||||
|
||||
|
||||
|
||||
export default function Header(props: any) {
|
||||
return (
|
||||
<header>
|
||||
{props.name} {props.age} {props.isMan ? 'is a man' : 'is a woman'}
|
||||
<Logo />
|
||||
<div>Header item</div>
|
||||
<Menu {...props} />
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user