feat: add next top loader

This commit is contained in:
Stevan Freeborn
2023-09-11 20:20:52 -05:00
parent 889cd08207
commit 636cd96e8b
7 changed files with 74 additions and 10 deletions
+2 -3
View File
@@ -1,12 +1,11 @@
'use client';
import { useMountedEffect } from '@/hooks';
import { useMountedEffect, useProgressEffect } from '@/hooks';
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';
import { BsMoonStarsFill, BsSunFill } from 'react-icons/bs';
import { ImSpinner2 } from 'react-icons/im';
export default function ThemeButton() {
useProgressEffect();
const { mounted, Loader } = useMountedEffect();
const { theme, setTheme } = useTheme();