MCPcopy Create free account
hub / github.com/code100x/daily-code / handlecreateCollection

Function handlecreateCollection

apps/web/components/admin/AdminSearch.tsx:22–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 setIsSubmitting(false);
21 }
22 async function handlecreateCollection() {
23 toast({
24 title: "Creating Collection",
25 description: "Please wait",
26 });
27 try {
28 await createCollection();
29 toast({
30 title: "Collection Created",
31 description: "Collection Created Successfully",
32 });
33 } catch (error) {
34 toast({
35 title: "Error",
36 description: "Error Creating Collection",
37 });
38 }
39 }
40 return (
41 <div>
42 <div className="flex justify-center space-x-3">

Callers

nothing calls this directly

Calls 2

toastFunction · 0.90
createCollectionFunction · 0.90

Tested by

no test coverage detected