mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
|
import PropTypes from 'prop-types'
|
||
|
import SymbolPaletteContent from './symbol-palette-content'
|
||
|
|
||
|
export default function SymbolPalette({ show, handleSelect }) {
|
||
|
if (!show) {
|
||
|
return null
|
||
|
}
|
||
|
|
||
|
return <SymbolPaletteContent handleSelect={handleSelect} />
|
||
|
}
|
||
|
SymbolPalette.propTypes = {
|
||
|
show: PropTypes.bool,
|
||
|
handleSelect: PropTypes.func.isRequired,
|
||
|
}
|