James 7171bde1d9 fix not able to scroll in my models screen
Signed-off-by: James <james@jan.ai>
2023-10-06 16:46:47 +07:00

20 lines
546 B
TypeScript

import { useAtomValue } from "jotai";
import React, { Fragment } from "react";
import ModelTable from "../ModelTable";
import { currentProductAtom } from "@/_helpers/atoms/Model.atom";
const ActiveModelTable: React.FC = () => {
const activeModel = useAtomValue(currentProductAtom);
if (!activeModel) return null;
return (
<div className="pl-[63px] pr-[89px]">
<h3 className="text-xl leading-[25px] mb-[13px]">Active Model(s)</h3>
<ModelTable models={[activeModel]} />
</div>
);
};
export default ActiveModelTable;