Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

447 B
Raw Blame
import { useAppStore } from "@/stores/app";
import { CommonText } from "./CommonText";

type Props = {
  readonly database: string;
  readonly schema?: string;
  readonly view: string;
};

/** Just the view's comment, wrapped. */
export function ViewInfo({ database, schema, view }: Props) {
  const viewMetadata = useAppStore((s) =>
    s.getViewMetadata({ database, schema, view })
  );
  return <CommonText content={viewMetadata.comment} />;
}