-
Notifications
You must be signed in to change notification settings - Fork 1
/
Links.tsx
24 lines (18 loc) · 1.01 KB
/
Links.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Box } from '@mui/system';
import Chip from '@mui/material/Chip';
import { GitHub, MenuBook, Forum } from '@mui/icons-material';
export function Links() {
const handleGithub = () => handleClick("https://github.com/khulnasoftsecurity/vul")
const handleDocumentation = () => handleClick("https://khulnasoftsecurity.github.io/vul")
const handleSlack = () => handleClick("https://khulnasoftsec.slack.com")
const handleClick = (url: string) => {
{ window.ddClient.host.openExternal(url) };
}
return (
<Box sx={{ display: 'flex', marginTop: '1rem', marginBottom: '2rem' }}>
<Chip icon={<GitHub />} onClick={handleGithub} label="View in GitHub" variant="outlined" sx={{ marginRight: '0.3rem' }} />
<Chip icon={<MenuBook />} onClick={handleDocumentation} label="View Documentation" variant="outlined" sx={{ marginRight: '0.3rem' }} />
<Chip icon={<Forum />} onClick={handleSlack} label="Join the Community" variant="outlined" />
</Box>
)
}