Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ulog from 'ulog'
import { h } from 'preact'
import defaultClasses from 'solids/list/classes'
import { createHelper } from '../style-classes'
import { Consumer } from '../theme'
const log = ulog('preact-solids:list')
export const List = (props = {}) => {
log('List', 'render', props)
const {
nonInteractive = false,
Component = nonInteractive ? 'nav' : 'ul',
dense = false,
twoLines = false,
avatars = false,
// list items
children,
// other attributes
...attributes
} = props
import ulog from 'ulog'
import { h } from 'preact'
import { createContext } from '@stijndewitt/preact-context'
const log = ulog('preact-solids:theme')
export const Theme = createContext({}, undefined, { providerOptional: true })
export const Provider = Theme.Provider
export const Consumer = Theme.Consumer
export default { Theme, Provider, Consumer }
log('Initialized')