import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { useStyles2 } from '@grafana/ui'; import { Stack } from './Stack'; interface EditorRowProps { children: React.ReactNode; stackProps?: Partial>; } export const EditorRow = ({ children, stackProps }: EditorRowProps) => { const styles = useStyles2(getStyles); return (
{children}
); }; const getStyles = (theme: GrafanaTheme2) => { return { root: css({ padding: theme.spacing(1), backgroundColor: theme.colors.background.secondary, borderRadius: theme.shape.radius.default, }), }; };