({
message,
}: StateViewProps)
| 176 | }; |
| 177 | |
| 178 | export const LoadingView = ({ |
| 179 | message, |
| 180 | }: StateViewProps) => { |
| 181 | return ( |
| 182 | <div className="flex justify-center items-center h-full flex-1 flex-col gap-y-4"> |
| 183 | <Loader2Icon className="size-6 animate-spin text-primary" /> |
| 184 | {!!message && ( |
| 185 | <p className="text-sm text-muted-foreground"> |
| 186 | {message} |
| 187 | </p> |
| 188 | )} |
| 189 | </div> |
| 190 | ); |
| 191 | }; |
| 192 | |
| 193 | |
| 194 | export const ErrorView = ({ |
nothing calls this directly
no outgoing calls
no test coverage detected