export const removeBase64Prefix = (base64: string) => { return base64.match(/^data:image\/[a-z]{3,4};base64,(.+)$/)?.[1] ?? base64; };