add source code
This commit is contained in:
17
src/lib-public/generators/FA1/PodmiotDaneKontaktowe.ts
Normal file
17
src/lib-public/generators/FA1/PodmiotDaneKontaktowe.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Content } from 'pdfmake/interfaces';
|
||||
import { createLabelText } from '../../../shared/PDF-functions';
|
||||
import { FP } from '../../types/fa1.types';
|
||||
|
||||
export function generateDaneKontaktowe(email?: FP, telefon?: FP[]): Content[] {
|
||||
const result: Content[] = [];
|
||||
|
||||
if (email) {
|
||||
result.push(createLabelText('Email: ', email));
|
||||
}
|
||||
if (telefon) {
|
||||
telefon.forEach((item) => {
|
||||
result.push(createLabelText('Tel.: ', `${item}\n`));
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user