7a3886073b
* feat: v2 wallet * feat: Web3Wallet sign integration * chore: adds `core` to package.json * feat: Web3Wallet Auth integration * chore: core & web3wallet canary * chore: rm config * chore: force redeploy * chore: rm core & sign-client deps * fix: rm `sign-client` usage * refactor: updates README * feat: adds metadata mock obj & removes relay url param * refactor: more url mentions * refactor: rm v2 wallet readme references & uses web3wallet.core... * refactor: wallet -> web3wallet * refactor: rm wallet to web3wallet * fix: adds async to example listeners
37 lines
787 B
TypeScript
37 lines
787 B
TypeScript
import { Col, Divider, Row, Text } from '@nextui-org/react'
|
|
import { Fragment, ReactNode } from 'react'
|
|
|
|
/**
|
|
* Types
|
|
*/
|
|
interface Props {
|
|
children?: ReactNode | ReactNode[]
|
|
title: string
|
|
}
|
|
|
|
/**
|
|
* Component
|
|
*/
|
|
export default function PageHeader({ title, children }: Props) {
|
|
return (
|
|
<Fragment>
|
|
<Row css={{ marginBottom: '$5', width: '100%' }} justify="space-between" align="center">
|
|
<Col>
|
|
<Text
|
|
h3
|
|
weight="bold"
|
|
css={{
|
|
textGradient: '90deg, $secondary, $primary 30%'
|
|
}}
|
|
>
|
|
{title}
|
|
</Text>
|
|
</Col>
|
|
{children ? <Col css={{ flex: 1 }}>{children}</Col> : null}
|
|
</Row>
|
|
|
|
<Divider css={{ marginBottom: '$10' }} />
|
|
</Fragment>
|
|
)
|
|
}
|