MCPcopy Create free account
hub / github.com/TejasQ/tejaskumar.com / ReadingTime

Function ReadingTime

components/ReadingTime.tsx:6–17  ·  view source on GitHub ↗
({ text })

Source from the content-addressed store, hash-verified

4import EmojiContainer from "./EmojiContainer";
5
6const 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
19export default ReadingTime;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected