mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 07:50:20 +08:00
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.
22 lines
510 B
TypeScript
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>
|
|
)
|
|
}
|