2026-10-08 18:09:07 +03:00

29 lines
1.1 KiB
TypeScript

import type { ReactNode } from 'react';
/** Белая карточка экрана проверки: заголовок капсом слева, действия справа (макет [41]). */
export function ReviewCard({ title, extra, children }: { title: string; extra?: ReactNode; children: ReactNode }) {
return (
<section
style={{
display: 'flex',
flexDirection: 'column',
height: '100%',
minWidth: 0,
background: 'white',
border: '1px solid #e4e7ec',
borderRadius: 16,
padding: 16,
gap: 12,
}}>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12, flex: '0 0 auto' }}>
<span style={{ fontSize: 12, fontWeight: 600, letterSpacing: 1, color: '#667085', textTransform: 'uppercase' }}>{title}</span>
{extra}
</div>
<div style={{ flex: '1 1 auto', minHeight: 0, overflow: 'auto' }}>{children}</div>
</section>
);
}
/** Зелёная кнопка подтверждения (макет [41]); antd-тема даёт primary другого цвета. */
export const confirmButtonStyle = { background: '#16a34a', borderColor: '#16a34a' } as const;