import { createFaker, type Faker } from "../lib/createFaker" import type { MockEmbedData, Seed } from "../types" const dataSet: MockEmbedData[] = [ { version: "1.0", type: "video", embed_url: "https://www.youtube.com/embed/fiOwHYFkUz0", thumbnail_url: "https://i.ytimg.com/vi/fiOwHYFkUz0/hqdefault.jpg", thumbnail_height: 360, thumbnail_width: 480, html: '', width: 200, height: 113, }, { version: "1.0", type: "video", embed_url: "https://www.youtube.com/embed/c-ATzcy6VkI", thumbnail_url: "https://i.ytimg.com/vi/c-ATzcy6VkI/hqdefault.jpg", thumbnail_height: 360, thumbnail_width: 480, html: '', width: 200, height: 113, }, { version: "1.0", type: "video", embed_url: "https://www.youtube.com/watch?v=fiOwHYFkUz0", thumbnail_url: "https://i.ytimg.com/vi/iewZXv94XGY/hqdefault.jpg", thumbnail_height: 360, thumbnail_width: 480, html: '', width: 200, height: 113, }, { version: "1.0", type: "rich", embed_url: "https://twitter.com/prismicio/status/1356293316158095361", thumbnail_url: null, thumbnail_height: null, thumbnail_width: null, html: '

Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.

But, what makes @GatsbyJS so popular?

Here are some of @mxstbr's thoughts on Gatsby's success and how they're improving developer experience.https://t.co/ZjCPvsWWUD pic.twitter.com/EQqzJpeNKl

— Prismic (@prismicio) February 1, 2021
\n\n', width: 200, height: 113, }, { type: "rich", version: "1.0", embed_url: "https://twitter.com/timbenniks/status/1304146886832594944", thumbnail_url: null, thumbnail_width: null, thumbnail_height: null, html: '

I’ve been diving deep on @prismicio #slicemachine today. I made all my own components and I used custom slices. It works like a charm with @nuxt_js. Also: I’m coding with this view. pic.twitter.com/F0I8X9gz39

— Tim Benniks (@timbenniks) September 10, 2020
\n\n', width: 200, height: 113, }, { version: "1.0", type: "rich", embed_url: "https://twitter.com/prismicio/status/1354112310252630016", thumbnail_url: null, thumbnail_width: null, thumbnail_height: null, html: '

We're launching a new #SliceContest tomorrow along with Slice Machine upgrades.

Want to know more? Join us at tomorrow's Product Meet-up👇https://t.co/prYSypiAvB

We can't tell you any further details for now, but here's a sneak peek at the prizes👀 pic.twitter.com/fV1eoGlEBh

— Prismic (@prismicio) January 26, 2021
\n\n', width: 200, height: 113, }, { version: "1.0", type: "rich", embed_url: "https://twitter.com/prismicio/status/1354835716430319617", thumbnail_url: null, thumbnail_width: null, thumbnail_height: null, html: '

Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?

It may or may not have to look a lot like #reddit and we won't make it private.

Just asking for some friends...

— Prismic (@prismicio) January 28, 2021
\n\n', width: 200, height: 113, }, ] type GetMockEmbedDataConfig = | { seed: Seed faker?: never } | { faker: Faker seed?: never } export const getMockEmbedData = (config: GetMockEmbedDataConfig): MockEmbedData => { const faker = config.faker || createFaker(config.seed) return faker.randomElement(dataSet) }