Skip to content

Commit de9372e

Browse files
committed
Update app header
1 parent 7e138e1 commit de9372e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llmstack/client/src/pages/AppRender.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Button,
1010
Container,
1111
Stack,
12+
SvgIcon,
1213
Toolbar,
1314
Typography,
1415
} from "@mui/material";
@@ -18,8 +19,11 @@ import { isMobileState, isLoggedInState } from "../data/atoms";
1819
import { AgentRenderer } from "../components/apps/AgentRenderer";
1920
import { WebChatRender } from "../components/apps/WebChatRender";
2021
import { WebAppRenderer } from "../components/apps/WebAppRenderer";
22+
import { ReactComponent as GithubIcon } from "../assets/images/icons/github.svg";
2123
import logo from "../assets/logo.png";
2224

25+
const SITE_NAME = process.env.REACT_APP_SITE_NAME || "LLMStack";
26+
2327
function AppRenderPage({ headless = false }) {
2428
const { publishedAppId, embed, chatBubble } = useParams();
2529
const [app, setApp] = useState({});
@@ -116,6 +120,17 @@ function AppRenderPage({ headless = false }) {
116120
/>
117121
</a>
118122
<Box sx={{ flexGrow: 1 }} />
123+
{SITE_NAME === "LLMStack" && (
124+
<SvgIcon
125+
component={GithubIcon}
126+
sx={{ width: "50px", height: "50px" }}
127+
viewBox="-10 -2 28 20"
128+
onClick={() => {
129+
window.location.href =
130+
"https://github.com/trypromptly/llmstack";
131+
}}
132+
/>
133+
)}
119134
{app.is_shareable && (
120135
<TwitterShareButton
121136
url={window.location.href}

0 commit comments

Comments
 (0)