import { Autocomplete, Button, Fab, Paper, TextField, Tooltip, Typography } from '@mui/material'; import { css, styled } from '@mui/material/styles'; import { ReactNode } from 'react'; import { useTranslation } from 'react-i18next'; export const CreateContainer = styled(Paper)` padding: 10px; margin-top: 10px; background-color: ${({ theme }) => theme.palette.background.paper}; color: ${({ theme }) => theme.palette.text.primary}; `; export const LocationPickerContainer = styled('div')` display: flex; flex-direction: row; margin-bottom: 10px; width: 100%; background-color: ${({ theme }) => theme.palette.background.paper}; color: ${({ theme }) => theme.palette.text.primary}; `; export const LocationPickerInput = styled((props: React.ComponentProps) => )` background-color: ${({ theme }) => theme.palette.background.paper}; flex: 1; `; export const LocationPickerButton = styled((props: React.ComponentProps) => ); } const AbsoluteFab = styled(Fab)` position: fixed; right: 10px; bottom: 10px; color: rgba(0, 0, 0, 0.2); font-size: 10px; `; export function ReportErrorFabButton(props: { message: string }): React.JSX.Element { const { t } = useTranslation(); return ( { const error = new Error(props.message); error.stack = 'ReportErrorButton'; void window.service.native.openNewGitHubIssue(error); }} > {t('Dialog.ReportBug')} ); }