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 { BadRequestException, HttpException, handleAction } from "@repo/actionkit"; | |
import { initializeLMS } from "@/lib/server"; | |
import { ZodError } from "zod"; | |
const { data, message, success, error } = await handleAction(initializeLMS,user,school); | |
// This is fully typesafe, handleAction can take minimum one argument for the server action | |
// Based on the number of arguements the server actions need you must pass typesafe number of arguements | |
// Data is undefined if the action is not returning anything or typesafe to the action response | |
// Message is always available same to success error, error can be undefined or of type ServerActionError |
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
@layer base { | |
* { | |
@apply border-border outline-ring/50; | |
} | |
body { | |
@apply bg-background text-foreground; | |
} | |
button:not(:disabled), |