export const CustomLabels = () => {
const containerHeight = 100;
const [value, setValue] = React.useState<string | null>(null);
return (
<Box width={'100%'}>
<Signature height={containerHeight} onChange={setValue} dateLabel="Date :" clearButtonLabel="Clear" />
{value && (
<>
<Typography fontSize={24}>Captured signature:</Typography>
<Image contentFit="contain" height={containerHeight} width="100%" source={value} />
</>
)}
</Box>
);
};