mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Adding Code snippet.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import {PropsWithChildren} from "react";
|
||||
|
||||
|
||||
export type CodeSnippetProps = PropsWithChildren<{}>;
|
||||
|
||||
export const CodeSnippet = (props: CodeSnippetProps) => {
|
||||
|
||||
return (
|
||||
<div className="prose prose-invert">
|
||||
<pre className="bg-[#1e1e1e] rounded-md p-4">
|
||||
<code className="language-javascript text-[#d4d4d4]">{`
|
||||
${props.children}
|
||||
`}</code>
|
||||
</pre>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -23,9 +23,6 @@ export const LoggedInDropdown = (props: LoggedInDropdownProps) => {
|
||||
}}>
|
||||
<span>Account</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem>
|
||||
<span>Billing</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={() => {
|
||||
signOutAction()
|
||||
}}>
|
||||
|
||||
Reference in New Issue
Block a user