mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
21 lines
509 B
JavaScript
21 lines
509 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './TrashButton.styl'
|
|
|
|
const PermanentDeleteButton = ({
|
|
onClick
|
|
}) => (
|
|
<button styleName='control-trashButton--in-trash'
|
|
onClick={(e) => onClick(e)}
|
|
>
|
|
<img styleName='iconInfo' src='../resources/icon/icon-trash.svg' />
|
|
</button>
|
|
)
|
|
|
|
PermanentDeleteButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(PermanentDeleteButton, styles)
|