web.lib.components.header.code-quarkus-io-header.tsx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-quarkus Show documentation
Show all versions of code-quarkus Show documentation
Customize a Web Interface to generate Quarkus starter projects.
import React, { useState } from 'react';
import './code-quarkus-io-header.scss';
import { createLinkTracker, useAnalytics } from '../../core/analytics';
import classNames from 'classnames';
import { Button } from 'react-bootstrap';
import { FaAngleLeft, FaHandsHelping, FaRedhat } from 'react-icons/fa';
import { CompanyHeader, CodeQuarkusHeaderProps } from './code-quarkus-header';
function SupportButton(prop: {}) {
const [ opened, open ] = useState(false);
const analytics = useAnalytics();
const linkTracker = createLinkTracker(analytics, 'Support panel');
const openPanel = (e: any) => {
analytics.event('Open Support panel', { element: 'support-button' });
open(true);
};
const closePanel = (e: any) => {
analytics.event('Close Support panel', { element: 'support-button' });
open(false);
};
return (
);
}
export function CodeQuarkusIoHeader(props: CodeQuarkusHeaderProps) {
const analytics = useAnalytics();
const linkTracker = createLinkTracker(analytics, 'Header');
return (
<>
Back to quarkus.io
>
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy