hedgedoc/src/components/landing/pages/history/common/close-button.tsx
mrdrogdrog c949b6950e
Sort components (#163)
* Move common components to the `common` directory
* rename style directory
* Move ForkAwesome to common
* Move initializers and restructure application-loader.tsx
2020-06-07 21:29:09 +02:00

19 lines
531 B
TypeScript

import React from 'react'
import { Button } from 'react-bootstrap'
import { ForkAwesomeIcon } from '../../../../common/fork-awesome/fork-awesome-icon'
import './close-button.scss'
export interface CloseButtonProps {
isDark: boolean;
className?: string
}
const CloseButton: React.FC<CloseButtonProps> = ({ isDark, className }) => {
return (
<Button variant={isDark ? 'secondary' : 'light'} className={`history-close ${className || ''}`}>
<ForkAwesomeIcon icon="times"/>
</Button>
)
}
export { CloseButton }