Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { styled, ThemeProps } from '@edtr-io/ui'
import { createTextPluginTheme } from '..'
export const Dropdown = styled.select(
(props: { name: string } & ThemeProps) => {
const theme = createTextPluginTheme(props.name, props.theme)
return {
backgroundColor: theme.backgroundColor,
cursor: 'pointer',
color: theme.color,
outline: 'none',
height: '25px',
border: 'none',
borderRadius: '4px',
margin: '5px',
'&:hover': {
color: theme.hoverColor
}
}
}
import { styled } from '@edtr-io/ui'
import { TextConfig } from '..'
export const Dropdown = styled.select<{ config: TextConfig }>(props => {
const { theme } = props.config
return {
backgroundColor: theme.backgroundColor,
cursor: 'pointer',
color: theme.color,
outline: 'none',
height: '25px',
border: 'none',
borderRadius: '4px',
margin: '5px',
'&:hover': {
color: theme.hoverColor
}
}
})