import type { Meta, StoryObj } from '@storybook/react'; import { CodeBlock } from './CodeBlock'; import React from 'react'; const meta: Meta = { title: 'Assistant/CodeBlock', component: CodeBlock, argTypes: { language: { control: 'select', options: ['typescript', 'tsx', 'css', 'bash', 'jsx'], }, }, }; export default meta; type Story = StoryObj; const exampleCode = `function HelloWorld() { const [count, setCount] = useState(0); return (

Counter

Current count: {count}

); }`; export const Default: Story = { args: { code: exampleCode, language: 'tsx', filename: 'Counter.tsx', showLineNumbers: false, }, render: args => (
), }; export const Simple: Story = { args: { code: 'npm install xertica-ui', language: 'bash', }, render: args => (
), };