Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Themeable(props) {
const [themeName, setThemeName] = React.useState(Theme.defaultName)
const handleSelect = (evt, index) => {
const nextTheme = Theme.names[Object.keys(Theme.names)[index]]
setThemeName(nextTheme)
}
return (
<>
<style>{`
.themeable {
position: relative;
}
.themeable-dark {
background: ${core.colors.gray06};
}
.themeable-light {</style>