mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00

* Move common components to the `common` directory * rename style directory * Move ForkAwesome to common * Move initializers and restructure application-loader.tsx
19 lines
531 B
TypeScript
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 }
|