{
return emoji ? `:${emoji.short_names[0]}:` : props.emoji
}}
/>
))
storiesOf('Headless Search', module)
.addDecorator(withKnobs)
.add('Default', () => {
let results = emojiIndex.search(text('Search', 'christmas'), {
custom: CUSTOM_EMOJIS,
})
if (!results) {
return null
}
return (
{results.map((emoji) => {
return (
)
})}
)
})