import { ThemeGetter , ThemeObject } from './types' ; export function fromTheme ( key ) { const themeGetter = ( theme ) => theme [ key ] || [ ] ; themeGetter . isThemeGetter = true as const ; return themeGetter ; }