mirror of
https://github.com/logos-messaging/logos-delivery-frontend.git
synced 2026-05-19 12:09:24 +00:00
25 lines
615 B
TypeScript
25 lines
615 B
TypeScript
import { Block, BlockTypes } from "@/components/Block";
|
|
import { Title } from "@/components/Title";
|
|
import { Button } from "@/components/Button";
|
|
|
|
type HeaderProps = {
|
|
children?: React.ReactNode;
|
|
onWalletConnect?: () => void;
|
|
}
|
|
|
|
export const Header: React.FunctionComponent<HeaderProps> = (props) => {
|
|
return (
|
|
<>
|
|
<Block className="mb-5" type={BlockTypes.FlexHorizontal}>
|
|
<Title>Waku</Title>
|
|
{props.onWalletConnect && (
|
|
<Button onClick={props.onWalletConnect}>
|
|
Connect Wallet
|
|
</Button>
|
|
)}
|
|
</Block>
|
|
{props.children}
|
|
</>
|
|
);
|
|
};
|