import { cx, css } from '@emotion/css'; import React, { FC } from 'react'; import { GrafanaTheme } from '@grafana/data'; import { useStyles } from '@grafana/ui'; type Props = React.HTMLAttributes; export const Well: FC = ({ children, className }) => { const styles = useStyles(getStyles); return
{children}
; }; export const getStyles = (theme: GrafanaTheme) => ({ wrapper: css` background-color: ${theme.colors.panelBg}; border: solid 1px ${theme.colors.formInputBorder}; border-radius: ${theme.border.radius.sm}; padding: ${theme.spacing.xs} ${theme.spacing.sm}; font-family: ${theme.typography.fontFamily.monospace}; `, });