import { Injectable } from '@nestjs/common';

@Injectable()
export class DvoraPageService {
  constructor() {}

  getMeta(data) {
    const meta = {
      keywords: data.meta_key_words,
      description: data.meta_description,
      robots: data.meta_robots,
    };
    return meta;
  }

  imageInfo(data) {
    const img = {
      url: data.url,
      title: data.title,
      alt: data.alt,
      caption: data.caption,
    };
    return img;
  }
}
