This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useAtom } from "jotai/react"; | |
import React, { useState, useCallback, useEffect } from "react"; | |
import { colorValue } from "../atoms"; | |
export default function AnimatedCircularProgressBar({ | |
max = 100, | |
min = 0, | |
value, | |
className = "", | |
children, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//TODO: figure out how to make typed namespaces work. (Both with i18n-ally and next-intl/use-intl) | |
type TranslationKeys = never; | |
export type ServerSideT<S extends TranslationKeys = never> = Awaited< | |
ReturnType<typeof getTranslations<S>> | |
>; | |
export type ClientSideT<S extends TranslationKeys = never> = ReturnType< | |
typeof useTranslations<S> | |
>; | |
export type IsomorficT<S extends TranslationKeys = never> = | |
| ServerSideT<S> |