From cb4520ad3e86f543424a48591dd6a5ef74282e1f Mon Sep 17 00:00:00 2001 From: danidfra Date: Wed, 2 Oct 2024 20:10:45 -0300 Subject: [PATCH] Created header-steps component to onboarding modal --- .../onboarding-flow-modal/header-steps.tsx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/features/ui/components/modals/onboarding-flow-modal/header-steps.tsx diff --git a/src/features/ui/components/modals/onboarding-flow-modal/header-steps.tsx b/src/features/ui/components/modals/onboarding-flow-modal/header-steps.tsx new file mode 100644 index 000000000..9e40b533d --- /dev/null +++ b/src/features/ui/components/modals/onboarding-flow-modal/header-steps.tsx @@ -0,0 +1,26 @@ +import React from 'react'; + +import { Stack, Text } from 'soapbox/components/ui'; +import IconButton from 'soapbox/components/ui/icon-button/icon-button'; + +interface IHeaderSteps { + onClose?: () => void; + title: React.ReactNode; + subtitle: React.ReactNode; +} + +export const HeaderSteps = ({ onClose, title, subtitle }: IHeaderSteps) => { + return ( +
+ + + + {title} + + + {subtitle} + + +
+ ); +};