restructure files onto electron-vite boilerplate

This commit is contained in:
jeffvli
2025-05-18 14:03:18 -07:00
parent 91ce2cd8a1
commit 1cf587bc8f
457 changed files with 9927 additions and 11705 deletions
@@ -1,13 +1,13 @@
import { useEffect, useRef, useState } from 'react';
import { FastAverageColor } from 'fast-average-color';
import { useEffect, useRef, useState } from 'react';
export const useFastAverageColor = (args: {
algorithm?: 'dominant' | 'simple' | 'sqrt';
id?: string;
src?: string | null;
src?: null | string;
srcLoaded?: boolean;
}) => {
const { algorithm, src, srcLoaded, id } = args;
const { algorithm, id, src, srcLoaded } = args;
const idRef = useRef<string | undefined>(id);
const [color, setColor] = useState<string | undefined>(undefined);