MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / ErrorView

Function ErrorView

src/components/entity-components.tsx:194–207  ·  view source on GitHub ↗
({
  message,
}: StateViewProps)

Source from the content-addressed store, hash-verified

192
193
194export 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
209interface EmptyViewProps extends StateViewProps {
210 onNew?: () => void;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected