import { FetchResult } from '@apollo/client'; import styled from '@emotion/styled'; import { Button, IconReload } from 'twenty-ui'; import { SyncRemoteTableSchemaChangesMutation } from '~/generated-metadata/graphql'; const StyledText = styled.h3` color: ${({ theme }) => theme.font.color.tertiary}; font-size: ${({ theme }) => theme.font.size.md}; font-weight: ${({ theme }) => theme.font.weight.regular}; margin: 0; `; type SettingsIntegrationRemoteTableSchemaUpdateProps = { updatesText: string; onUpdate: () => Promise>; }; export const SettingsIntegrationRemoteTableSchemaUpdate = ({ updatesText, onUpdate, }: SettingsIntegrationRemoteTableSchemaUpdateProps) => { return ( <> {updatesText && {updatesText}} {updatesText && (