Files
supabase/apps/design-system/components/component-source.tsx
Ivan Vasilov 1cd1ebfc7f chire: Sort imports in all packages, cms, design-system and ui-library apps (#41610)
Sorted all imports in all packages, `cms`, `design-system` and
`ui-library` apps by running `pnpm format` on them.

All changes in this PR are done by the script.
2026-02-05 13:54:10 +01:00

22 lines
510 B
TypeScript

'use client'
import * as React from 'react'
import { cn } from 'ui'
import { CodeBlockWrapper } from '@/components/code-block-wrapper'
interface ComponentSourceProps extends React.HTMLAttributes<HTMLDivElement> {
src: string
}
export function ComponentSource({ children, className, ...props }: ComponentSourceProps) {
return (
<CodeBlockWrapper
expandButtonTitle="Expand"
className={cn('my-6 overflow-hidden rounded-md', className)}
>
{children}
</CodeBlockWrapper>
)
}