({ text })
| 4 | import EmojiContainer from "./EmojiContainer"; |
| 5 | |
| 6 | const ReadingTime: FC<{ text: string }> = ({ text }) => { |
| 7 | const readingTimeForThisPost = readingTime(text); |
| 8 | |
| 9 | return ( |
| 10 | <BlogMeta> |
| 11 | <EmojiContainer> |
| 12 | {"☕️".repeat(Math.ceil(readingTimeForThisPost.minutes / 15))} |
| 13 | </EmojiContainer> |
| 14 | {readingTimeForThisPost.text} |
| 15 | </BlogMeta> |
| 16 | ); |
| 17 | }; |
| 18 | |
| 19 | export default ReadingTime; |
nothing calls this directly
no outgoing calls
no test coverage detected