Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: missing export

Copple46b1044d6cae
diff --git a/apps/www/components/CodeBlock/CodeBlock.tsx b/apps/www/components/CodeBlock/CodeBlock.tsx
index 87960fa1191..39229d48675 100644
--- a/apps/www/components/CodeBlock/CodeBlock.tsx
+++ b/apps/www/components/CodeBlock/CodeBlock.tsx
@@ -8,7 +8,7 @@ import py from 'react-syntax-highlighter/dist/cjs/languages/hljs/python'
import sql from 'react-syntax-highlighter/dist/cjs/languages/hljs/sql'
import monokaiCustomTheme from './CodeBlock.utils'
-interface Props {
+export interface CodeBlockProps {
lang: 'js' | 'sql' | 'py' | 'bash'
startingLineNumber?: number
hideCopy?: boolean
@@ -18,7 +18,7 @@ interface Props {
size?: 'small' | 'medium' | 'large'
}
-function CodeBlock(props: Props) {
+function CodeBlock(props: CodeBlockProps) {
const [copied, setCopied] = useState(false)
const firstLine = props.children ? props.children.split('\n')[0] : ''