unreal-chat/packages/ui/src/code.tsx
Juan Sebastian Montoya 7d4796c8eb chore: update package.json and TypeScript configuration across multiple packages
- Added linting and type-checking scripts to package.json for api, web, and ui packages.
- Updated ESLint configuration to ignore specific directories and added global window variable.
- Modified TypeScript configuration for ui package to exclude turbo generators.
- Refactored Button, Card, and Code components to use props for better readability and consistency.
2025-05-06 00:35:39 -05:00

8 lines
211 B
TypeScript

import { type JSX } from 'solid-js/jsx-runtime';
export function Code(props: {
children: JSX.Element;
className?: string;
}): JSX.Element {
return <code class={props.className}>{props.children}</code>;
}