* wip: new sync * wip: restructure routes * update * feat: improve sync * feat: repost with multi-account * feat: improve sync * feat: publish with multi account * fix: settings screen * feat: add zap for multi accounts
15 lines
366 B
TypeScript
15 lines
366 B
TypeScript
import { commands } from "@/commands.gen";
|
|
import { createFileRoute } from "@tanstack/react-router";
|
|
|
|
export const Route = createFileRoute("/columns/_layout/stories/$id")({
|
|
loader: async ({ params }) => {
|
|
const res = await commands.getContactList(params.id);
|
|
|
|
if (res.status === "ok") {
|
|
return res.data;
|
|
} else {
|
|
throw new Error(res.error);
|
|
}
|
|
},
|
|
});
|