diff --git a/frontend/src/bundles/studio/components/warning-modal/components/components.ts b/frontend/src/bundles/studio/components/warning-modal/components/components.ts index b6f205279..e2562a94a 100644 --- a/frontend/src/bundles/studio/components/warning-modal/components/components.ts +++ b/frontend/src/bundles/studio/components/warning-modal/components/components.ts @@ -1 +1,2 @@ +export { UnsavedWarningContent } from './unsaved-warning-content.js'; export { WarningContent } from './warning-content.js'; diff --git a/frontend/src/bundles/studio/components/warning-modal/components/unsaved-warning-content.tsx b/frontend/src/bundles/studio/components/warning-modal/components/unsaved-warning-content.tsx new file mode 100644 index 000000000..e4cdcc44c --- /dev/null +++ b/frontend/src/bundles/studio/components/warning-modal/components/unsaved-warning-content.tsx @@ -0,0 +1,41 @@ +import { + Button, + Flex, + Heading, + Text, +} from '~/bundles/common/components/components.js'; + +type Properties = { + onCancel: () => void; + onSubmit: () => void; +}; + +const UnsavedWarningContent: React.FC = ({ + onCancel, + onSubmit, +}) => { + return ( + <> + + Notice before you leave the page + + + + If you leave now all your unsaved changes will be lost. Please + save draft or submit to render before leaving. + + + +