This file contains hidden or 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 useSWR, { ConfigInterface, responseInterface } from "swr"; | |
// you can import the next line from your axios instance repository | |
import axios, { AxiosRequestConfig, AxiosResponse, AxiosError } from "axios"; | |
export type GetRequest = AxiosRequestConfig | null; | |
interface Return<Data, Error> | |
extends Pick< | |
responseInterface<AxiosResponse<Data>, AxiosError<Error>>, |
This file contains hidden or 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 React from 'react'; | |
// * modules | |
import classnames from 'classnames'; | |
// define all text types | |
type VariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p'; | |
type LineheightProps = | |
| 'none' | |
| 'light' |
NewerOlder