mirror of
https://github.com/strapi/strapi.git
synced 2025-08-20 14:49:38 +00:00
22 lines
458 B
JavaScript
22 lines
458 B
JavaScript
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,
|
|
};
|