feat: add Active and Add integration card displays (#4591)
* feat: add Active and Add integration card displays Closes #4541 * docs: add PaymentSuccess page stories * refactor: move page components
This commit is contained in:
@ -0,0 +1,44 @@
|
||||
import { SettingsIntegrationCategory } from '@/settings/integrations/types/SettingsIntegrationCategory';
|
||||
|
||||
export const getSettingsIntegrationAll = ({
|
||||
isAirtableIntegrationEnabled,
|
||||
isAirtableIntegrationActive,
|
||||
isPostgresqlIntegrationEnabled,
|
||||
isPostgresqlIntegrationActive,
|
||||
}: {
|
||||
isAirtableIntegrationEnabled: boolean;
|
||||
isAirtableIntegrationActive: boolean;
|
||||
isPostgresqlIntegrationEnabled: boolean;
|
||||
isPostgresqlIntegrationActive: boolean;
|
||||
}): SettingsIntegrationCategory => ({
|
||||
key: 'all',
|
||||
title: 'All',
|
||||
integrations: [
|
||||
{
|
||||
from: {
|
||||
key: 'airtable',
|
||||
image: '/images/integrations/airtable-logo.png',
|
||||
},
|
||||
type: !isAirtableIntegrationEnabled
|
||||
? 'Soon'
|
||||
: isAirtableIntegrationActive
|
||||
? 'Active'
|
||||
: 'Add',
|
||||
text: 'Airtable',
|
||||
link: '/settings/integrations/airtable',
|
||||
},
|
||||
{
|
||||
from: {
|
||||
key: 'postgresql',
|
||||
image: '/images/integrations/postgresql-logo.png',
|
||||
},
|
||||
type: !isPostgresqlIntegrationEnabled
|
||||
? 'Soon'
|
||||
: isPostgresqlIntegrationActive
|
||||
? 'Active'
|
||||
: 'Add',
|
||||
text: 'PostgreSQL',
|
||||
link: '/settings/integrations/postgresql',
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user