perf: avoid layout re-rendering
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { z } from 'zod';
|
||||
import { NewsSchema } from '../../utils/schemas';
|
||||
import { sayings } from './helpers/newsletterSayings';
|
||||
import { sayings } from './helpers/sayings';
|
||||
import Template from './template';
|
||||
|
||||
export default function NewsletterTemplate(
|
||||
stories: z.infer<typeof NewsSchema>[]
|
||||
) {
|
||||
|
||||
return {
|
||||
subject: `What's new from the Hackernews forum?`,
|
||||
template: (
|
||||
|
||||
Reference in New Issue
Block a user