react-code-dataset
/
next.js
/packages
/next
/src
/client
/components
/render-from-template-context.tsx
| 'use client' | |
| import React, { useContext, type JSX } from 'react' | |
| import { TemplateContext } from '../../shared/lib/app-router-context.shared-runtime' | |
| export default function RenderFromTemplateContext(): JSX.Element { | |
| const children = useContext(TemplateContext) | |
| return <>{children}</> | |
| } | |