overleaf/services/web/frontend/js/features/symbol-palette/components/symbol-palette.js

15 lines
357 B
JavaScript
Raw Normal View History

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,
}