create useFontLists() to fetch font list

This commit is contained in:
2025-09-28 18:57:47 +07:00
parent 6e1b70f2dc
commit 2959090043
+12
View File
@@ -0,0 +1,12 @@
export const useFontLists = (fontUrl: string, fontListFile: string) => {
const {data: fonts, error, pending} = useFetch(fontUrl + fontListFile, {
key: 'font-lists',
server: false,
lazy: false,
});
return {
fonts,
error,
pending
}
}