임베드 앱
임베드 앱
임베딩 패턴
Drawer 패턴
import { DrawerView } from '@stripe/ui-extension-sdk/ui';
const SyncDrawer = ({ onClose }) => { return ( <DrawerView title="Brevo 동기화 상태" onClose={onClose}> <Box css={{ padding: 'large' }}> <SyncStatusContent /> </Box> </DrawerView> );};Modal 패턴
import { ModalView } from '@stripe/ui-extension-sdk/ui';
const SetupModal = ({ onClose }) => { return ( <ModalView title="Brevo 설정" onClose={onClose}> <Box css={{ padding: 'xlarge' }}> <SetupWizard /> </Box> </ModalView> );};UI 컴포넌트 라이브러리
import { Box, Inline, Button, Banner, Badge, TextField, Select, Divider, Spinner, Icon, Link,} from '@stripe/ui-extension-sdk/ui';컨텍스트 액세스
const MyView = ({ environment, userContext }: ExtensionContextValue) => { const accountId = userContext?.account?.id; const customerId = environment.objectContext?.id; const mode = environment.mode; // 'live' or 'test' return <Box>{/* 컴포넌트 */}</Box>;};