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