mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-03-03 03:47:02 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import {
|
|
registerSheet,
|
|
RouteDefinition,
|
|
SheetDefinition,
|
|
} from "react-native-actions-sheet";
|
|
import SupportSheet from "./SupportSheet";
|
|
import AddLinkSheet from "./AddLinkSheet";
|
|
import EditLinkSheet from "./EditLinkSheet";
|
|
import NewCollectionSheet from "./NewCollectionSheet";
|
|
import { LinkIncludingShortenedCollectionAndTags } from "@linkwarden/types";
|
|
|
|
registerSheet("support-sheet", SupportSheet);
|
|
registerSheet("add-link-sheet", AddLinkSheet);
|
|
registerSheet("edit-link-sheet", EditLinkSheet);
|
|
registerSheet("new-collection-sheet", NewCollectionSheet);
|
|
|
|
declare module "react-native-actions-sheet" {
|
|
interface Sheets {
|
|
"support-sheet": SheetDefinition;
|
|
"add-link-sheet": SheetDefinition;
|
|
"edit-link-sheet": SheetDefinition<{
|
|
payload: {
|
|
link: LinkIncludingShortenedCollectionAndTags;
|
|
};
|
|
routes: {
|
|
main: RouteDefinition<{
|
|
link: LinkIncludingShortenedCollectionAndTags;
|
|
}>;
|
|
collections: RouteDefinition<{
|
|
link: LinkIncludingShortenedCollectionAndTags;
|
|
}>;
|
|
};
|
|
}>;
|
|
"new-collection-sheet": SheetDefinition;
|
|
}
|
|
}
|
|
|
|
export {};
|