mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-05 22:43:30 +00:00
add different clients support
This commit is contained in:
committed by
Guy Ben-Aharon
parent
1fbf7cc677
commit
eee9832fe1
@@ -7,17 +7,19 @@ export interface CodeSnippetProps {
|
||||
className?: string;
|
||||
codeProps?: CodeBlockProps;
|
||||
code: string;
|
||||
language?: 'sql' | 'bash';
|
||||
}
|
||||
|
||||
export const CodeSnippet: React.FC<CodeSnippetProps> = ({
|
||||
className,
|
||||
codeProps,
|
||||
code,
|
||||
language = 'sql',
|
||||
}) => {
|
||||
return (
|
||||
<div className={cn('flex flex-1', className)}>
|
||||
<CopyBlock
|
||||
language="sql"
|
||||
language={language}
|
||||
text={code}
|
||||
theme={atomOneDark}
|
||||
customStyle={{
|
||||
|
||||
Reference in New Issue
Block a user