mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
26 lines
509 B
TypeScript
26 lines
509 B
TypeScript
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>
|
|
);
|
|
};
|