MCPcopy 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

4import styles from './index.module.scss';
5
6function wrap(text: string) {
7 if (text.startsWith(':') && text.endsWith(':')) {
8 return text;
9 }
10 return `:${text}:`;
11}
12
13interface Props {
14 type: string;

Callers 1

ReactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected