mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-04-22 10:52:12 +00:00
33 lines
488 B
TypeScript
33 lines
488 B
TypeScript
import { Component } from "react";
|
|
import { type } from "os";
|
|
|
|
import '../styl/styl.styl'
|
|
|
|
|
|
export enum ButtonType {
|
|
NORMAL = "",
|
|
OUTLINE = "outline",
|
|
GHOST = "ghost"
|
|
}
|
|
|
|
interface Props {
|
|
text: string
|
|
type?: ButtonType
|
|
// src: string
|
|
// alt?: string
|
|
// layout?: string
|
|
}
|
|
|
|
export default class DWButton extends Component<Props, {}> {
|
|
|
|
constructor(props: Props) {
|
|
super(props)
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<button className={this.props.type}>{this.props.text}</button>
|
|
)
|
|
}
|
|
}
|