import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme } from '@grafana/data'; import { stylesFactory, useTheme } from '@grafana/ui'; const title = { fontWeight: 500, fontSize: '26px', lineHeight: '123%' }; const getStyles = stylesFactory((theme: GrafanaTheme) => { const backgroundUrl = theme.isDark ? 'public/img/licensing/header_dark.svg' : 'public/img/licensing/header_light.svg'; const footerBg = theme.isDark ? theme.palette.dark9 : theme.palette.gray6; return { container: css` padding: 36px 79px; background: ${theme.colors.panelBg}; `, footer: css` text-align: center; padding: 16px; background: ${footerBg}; `, header: css` height: 137px; padding: 40px 0 0 79px; 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 theme = useTheme(); const styles = getStyles(theme); return ( <>