feat(FE): Add PDF helper components for badges and typography

This commit is contained in:
rstubryan
2026-02-09 15:58:28 +07:00
parent 4717330bc8
commit 606380460e
3 changed files with 155 additions and 0 deletions
@@ -0,0 +1,25 @@
import { Text, View, StyleSheet } from '@react-pdf/renderer';
type PdfParamBadgeProps = {
children: React.ReactNode;
};
const styles = StyleSheet.create({
parameterBadge: {
backgroundColor: '#F5F5F5',
color: '#333333',
padding: 4,
borderRadius: 4,
fontSize: 8,
marginRight: 8,
marginBottom: 4,
},
});
export const PdfParamBadge = ({ children }: PdfParamBadgeProps) => {
return (
<View style={styles.parameterBadge}>
<Text>{children}</Text>
</View>
);
};