feat: simplified imports

This commit is contained in:
TrèsAbhi committed 2024-03-13 18:15:13 -05:00
1 parent 9592c0b55f
commit 791a09daae
4 files changed
+18 -20

No files matched your search

+6 -12
View File
@@ -1,19 +1,13 @@
import { readFileSync } from 'fs';
import satori from 'satori';
import robotoBlack from './Roboto-Black.ttf';
import robotoBold from './Roboto-Bold.ttf';
import roboto from './Roboto.ttf';
const fonts = [
{
file: require('./Roboto.ttf') as string,
weight: 400 as const,
},
{
file: require('./Roboto-Bold.ttf') as string,
weight: 700 as const,
},
{
file: require('./Roboto-Black.ttf') as string,
weight: 900 as const,
},
{ file: roboto, weight: 400 as const },
{ file: robotoBold, weight: 700 as const },
{ file: robotoBlack, weight: 900 as const },
];
export default async function jsxToSvg(jsx: JSX.Element) {