- refactor: replace Output component with OutputForms and update related hooks and types

This commit is contained in:
2025-11-26 13:00:41 +00:00
parent 90eb976092
commit e07f769288
14 changed files with 232 additions and 104 deletions

View File

@@ -3,12 +3,12 @@ import Card from "../../../ui/Card";
import CardHeader from "../../../ui/CardHeader";
import ChannelFields from "./ChannelFields";
import type { FormTypes } from "../../../types/types";
import { useGetOutputs } from "../hooks/useGetOutputs";
import { useGetBearerConfig } from "../hooks/useBearer";
const ChannelCard = () => {
const { values, errors, touched, setFieldValue } = useFormikContext<FormTypes>();
const { query } = useGetOutputs(values?.format?.toLowerCase() || "json");
const outputData = query?.data;
const { bearerQuery } = useGetBearerConfig(values?.format?.toLowerCase() || "json");
const outputData = bearerQuery?.data;
return (
<Card className="p-4 h-150 md:h-full">
<CardHeader title={`Channel (${values?.format})`} />