new.tsx 972 B

12345678910111213141516171819202122232425262728
  1. import {Button, LinkButton} from 'sentry/components/button';
  2. import {Flex} from 'sentry/components/container/flex';
  3. import {
  4. StickyFooter,
  5. StickyFooterLabel,
  6. } from 'sentry/components/workflowEngine/ui/footer';
  7. import {useWorkflowEngineFeatureGate} from 'sentry/components/workflowEngine/useWorkflowEngineFeatureGate';
  8. import {t} from 'sentry/locale';
  9. import {space} from 'sentry/styles/space';
  10. import NewAutomationLayout from 'sentry/views/automations/layouts/new';
  11. export default function AutomationNew() {
  12. useWorkflowEngineFeatureGate({redirect: true});
  13. return (
  14. <NewAutomationLayout>
  15. <StickyFooter>
  16. <StickyFooterLabel>{t('Step 1 of 2')}</StickyFooterLabel>
  17. <Flex gap={space(1)}>
  18. <Button priority="default">{t('Cancel')}</Button>
  19. <LinkButton priority="primary" to="/automations/new/settings">
  20. {t('Next')}
  21. </LinkButton>
  22. </Flex>
  23. </StickyFooter>
  24. </NewAutomationLayout>
  25. );
  26. }