({
message,
}: StateViewProps)
| 192 | |
| 193 | |
| 194 | export const ErrorView = ({ |
| 195 | message, |
| 196 | }: StateViewProps) => { |
| 197 | return ( |
| 198 | <div className="flex justify-center items-center h-full flex-1 flex-col gap-y-4"> |
| 199 | <AlertTriangleIcon className="size-6 text-primary" /> |
| 200 | {!!message && ( |
| 201 | <p className="text-sm text-muted-foreground"> |
| 202 | {message} |
| 203 | </p> |
| 204 | )} |
| 205 | </div> |
| 206 | ); |
| 207 | }; |
| 208 | |
| 209 | interface EmptyViewProps extends StateViewProps { |
| 210 | onNew?: () => void; |
nothing calls this directly
no outgoing calls
no test coverage detected