import { t } from '@lingui/macro'; import React from 'react'; import { SelectableValue } from '@grafana/data'; import { RadioButtonGroup, Field } from '@grafana/ui'; interface Props { selectedTheme: string; onChange: (value: string) => void; } export const ThemePicker = ({ selectedTheme = 'current', onChange }: Props) => { const themeOptions: Array> = [ { label: t({ id: 'share-modal.theme-picker.current', message: `Current`, }), value: 'current', }, { label: t({ id: 'share-modal.theme-picker.dark', message: `Dark`, }), value: 'dark', }, { label: t({ id: 'share-modal.theme-picker.light', message: `Light`, }), value: 'light', }, ]; return ( ); };