Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Linen-dev/linen.dev
/ wrap
Function
wrap
apps/web/ui/Message/Reactions/Reaction/index.tsx:6–11 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
4
import styles from
'./index.module.scss'
;
5
6
function wrap(text: string) {
7
if (text.startsWith(
':'
) && text.endsWith(
':'
)) {
8
return text;
9
}
10
return `:${text}:`;
11
}
12
13
interface Props {
14
type: string;
Callers
1
Reaction
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected