뷰포트 및 UI 컴포넌트
뷰포트 및 UI 컴포넌트
뷰포트는 앱 UI가 렌더링되는 Stripe Dashboard의 특정 위치입니다.
사용 가능한 뷰포트
| 뷰포트 | 위치 | 유스케이스 |
|---|---|---|
stripe.dashboard.customer.detail | 고객 상세 페이지 | 고객별 Brevo 동기화 상태 |
stripe.dashboard.home.overview | Dashboard 홈 | 통합 전체 상태 |
stripe.dashboard.payment.detail | 결제 상세 페이지 | 결제 트리거 캠페인 정보 |
고객 상세 뷰포트
import { Box, Button, Badge, Inline, Banner,} from '@stripe/ui-extension-sdk/ui';import type { ExtensionContextValue } from '@stripe/ui-extension-sdk/context';
const CustomerDetailView = ({ environment, userContext }: ExtensionContextValue) => { return ( <Box css={{ padding: 'large' }}> <Inline css={{ fontWeight: 'bold', marginBottom: 'medium' }}> Brevo 연락처 동기화 </Inline> <Banner title="Brevo에 동기화됨" description="이 고객은 Brevo에 동기화되어 있습니다." variant="default" /> <Button type="primary" css={{ marginTop: 'medium' }}> Brevo에 동기화 </Button> </Box> );};Tip
stripe.dashboard.customer.detail 뷰포트부터 시작하세요. 이것이 Tajo Brevo 통합에 가장 유용한 뷰포트입니다.