mirror of
https://github.com/SomboChea/ui
synced 2024-06-02 17:45:05 +07:00
1904179af3
* feat: add browser features to browse by version * chore: verify whether version exist * chore: add link on versions * chore: udpate imports * chore: use mui links * test: add unit test * chore: Add todo list * chore: remove imports
31 lines
680 B
TypeScript
31 lines
680 B
TypeScript
import { PackageMetaInterface } from '../../../types/packageMeta';
|
|
|
|
export interface DetailContextProps {
|
|
packageMeta: PackageMetaInterface;
|
|
packageVersion?: string;
|
|
readMe: string;
|
|
packageName: string;
|
|
enableLoading: () => void;
|
|
}
|
|
|
|
export interface VersionPageConsumerProps {
|
|
packageMeta: PackageMetaInterface;
|
|
readMe: string;
|
|
packageName: string;
|
|
packageVersion?: string;
|
|
// FIXME: looking for the appropiated type here
|
|
enableLoading: any;
|
|
}
|
|
|
|
export interface PropsInterface {
|
|
match: boolean;
|
|
}
|
|
|
|
export interface StateInterface {
|
|
readMe: string;
|
|
packageName: string;
|
|
packageMeta?: PackageMetaInterface;
|
|
isLoading: boolean;
|
|
notFound: boolean;
|
|
}
|