mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
13 lines
331 B
TypeScript
13 lines
331 B
TypeScript
|
import {Button} from '@tryghost/admin-x-design-system';
|
||
|
import {useRouting} from '@tryghost/admin-x-framework/routing';
|
||
|
|
||
|
const MainContent = () => {
|
||
|
const {updateRoute} = useRouting();
|
||
|
|
||
|
return <div>
|
||
|
<Button label='Open modal' onClick={() => updateRoute('demo-modal')} />
|
||
|
</div>;
|
||
|
};
|
||
|
|
||
|
export default MainContent;
|