Files
explore/configs/app/features/csvExport.ts
T
2023-08-11 15:22:42 -04:00

24 lines
466 B
TypeScript

import type { Feature } from './types';
import services from '../services';
const title = 'Export data to CSV file';
const config: Feature<{ reCaptcha: { siteKey: string }}> = (() => {
if (services.reCaptcha.siteKey) {
return Object.freeze({
title,
isEnabled: true,
reCaptcha: {
siteKey: services.reCaptcha.siteKey,
},
});
}
return Object.freeze({
title,
isEnabled: false,
});
})();
export default config;