feat(gui): add button to open docs site
This commit is contained in:
parent
523a2a0cc7
commit
8e7f8c76d2
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue