mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(core): adjust history modal styles (#11675)
- add avatar/name info to each history snapshot item - add avatar to audio transcription job owner fix AF-2483 
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export const useBlobUrl = (buffer?: Buffer) => {
|
||||
const [blobUrl, setBlobUrl] = useState<string | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (!buffer) {
|
||||
return;
|
||||
}
|
||||
const url = URL.createObjectURL(new Blob([buffer]));
|
||||
setBlobUrl(url);
|
||||
return () => {
|
||||
URL.revokeObjectURL(url);
|
||||
};
|
||||
}, [buffer]);
|
||||
|
||||
return blobUrl;
|
||||
};
|
||||
Reference in New Issue
Block a user