mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
feat: recreate dashboard page from previous version
This commit is contained in:
6
inertia/lib/image.ts
Normal file
6
inertia/lib/image.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const isImage = (type: string) => type.includes('image');
|
||||
|
||||
export const isBase64Image = (data: string) => data.startsWith('data:image/');
|
||||
|
||||
export const convertBase64ToBuffer = (base64: string) =>
|
||||
Buffer.from(base64, 'base64');
|
||||
Reference in New Issue
Block a user