MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / CodeBox

Function CodeBox

apps/site/components/Common/CodeBox.tsx:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15const CodeBox: FC<PropsWithChildren<CodeBoxProps>> = props => {
16 const t = useTranslations();
17
18 return (
19 <BaseCodeBox
20 as={Link}
21 copyButtonLabel={t('components.common.codebox.copy')}
22 copiedButtonLabel={t('components.common.codebox.copied')}
23 {...props}
24 />
25 );
26};
27
28export default CodeBox;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected