Ghost/apps/announcement-bar/src/App.js
Daniel Lockyer 7a124a6901 Moved announcement-bar to apps/
refs https://github.com/TryGhost/Toolbox/issues/594

- we're moving all the standalone apps to a separate folder to keep them
  out of the core code and easier to find
2023-06-14 12:28:55 +02:00

13 lines
296 B
JavaScript

import React from 'react';
import {Preview} from './components/Preview';
import {Main} from './components/Main';
export function App({apiUrl, previewData}) {
if (previewData) {
return <Preview previewData={previewData}/>;
}
return (
<Main apiUrl={apiUrl} />
);
}