15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
import { markdownToHtml } from '@utils/markdown'
|
|
import React, { ReactElement } from 'react'
|
|
import styles from './Empty.module.css'
|
|
|
|
export default function Empty({ message }: { message?: string }): ReactElement {
|
|
return (
|
|
<div
|
|
className={styles.empty}
|
|
dangerouslySetInnerHTML={{
|
|
__html: markdownToHtml(message) || 'No results found'
|
|
}}
|
|
/>
|
|
)
|
|
}
|