22 lines
458 B
JavaScript
Raw Normal View History

import React from 'react';
import { Button } from '@strapi/design-system';
const config = {
locales: ['it', 'es', 'en'],
};
const bootstrap = (app) => {
console.log('I AM BOOTSTRAPPED');
app.injectContentManagerComponent('editView', 'right-links', {
name: 'PreviewButton',
Component: () => (
<Button onClick={() => window.alert('Not here, The preview is.')}>Preview</Button>
),
});
};
export default {
config,
bootstrap,
};