7a124a6901
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
13 lines
296 B
JavaScript
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} />
|
|
);
|
|
}
|