mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
19 lines
523 B
TypeScript
19 lines
523 B
TypeScript
import * as React from 'react'
|
|
import { BaseComponentProps } from '@models/BaseProps'
|
|
import classnames from 'classnames'
|
|
import './style.scss'
|
|
|
|
interface HeaderProps extends BaseComponentProps {
|
|
// header title
|
|
title: string
|
|
}
|
|
|
|
export const Header: React.SFC<HeaderProps> = props => {
|
|
const { title, children, className, style } = props
|
|
|
|
return <header className={classnames('header', className)} style={style}>
|
|
<h1>{title}</h1>
|
|
<div className="operations">{children}</div>
|
|
</header>
|
|
}
|