Enterprise-CMCS/macpro-mako

View on GitHub
react-app/src/features/dashboard/Lists/spas/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
33%
import { useOsContext, ErrorAlert, OsMainView } from "@/components";
import { useSpaTableColumns } from "./consts";

export const SpasList = () => {
  const context = useOsContext();
  const columns = useSpaTableColumns();

  if (context.error) return <ErrorAlert error={context.error} />;

  return <OsMainView columns={columns} />;
};