import { css } from '@emotion/css'; import * as React from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { useStyles2, useTheme2 } from '@grafana/ui'; const title = { fontWeight: 500, fontSize: '26px', lineHeight: '123%' }; const getStyles = (theme: GrafanaTheme2) => { const backgroundUrl = theme.isDark ? 'public/img/licensing/header_dark.svg' : 'public/img/licensing/header_light.svg'; const footerBg = theme.isDark ? theme.v1.palette.dark9 : theme.v1.palette.gray6; return { container: css({ padding: theme.spacing(4), background: theme.components.panel.background, }), footer: css({ textAlign: 'center', padding: theme.spacing(2), background: footerBg, }), header: css({ height: '137px', padding: theme.spacing(4, 0, 0, 4), position: 'relative', background: `url('${backgroundUrl}') right`, }), }; }; interface Props { header: string; subheader?: string; editionNotice?: string; children?: React.ReactNode; } export function LicenseChrome({ header, editionNotice, subheader, children }: Props) { const styles = useStyles2(getStyles); return ( <>