1
0
Fork 0

feat(gui): add button to open docs site

This commit is contained in:
Sean Sube 2023-12-16 16:15:08 -06:00
parent 523a2a0cc7
commit 8e7f8c76d2
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 14 additions and 2 deletions

View File

@ -1,8 +1,20 @@
import { Link, Typography } from '@mui/material';
import { Help } from '@mui/icons-material';
import { IconButton, Link, Typography } from '@mui/material';
import * as React from 'react';
export const URL_DOCS = 'https://www.onnx-web.ai/docs';
export const URL_REPO = 'https://github.com/ssube/onnx-web';
export const NEW_WINDOW = '_blank';
export function openDocSite() {
window.open(URL_DOCS, NEW_WINDOW);
}
export function Logo() {
return <Typography variant='h3' gutterBottom>
<Link href='https://github.com/ssube/onnx-web' target='_blank' underline='hover'>ONNX Web</Link>
<Link href={URL_REPO} target={NEW_WINDOW} underline='hover'>ONNX Web</Link>
<IconButton onClick={openDocSite}>
<Help />
</IconButton>
</Typography>;
}