* refactor: replacing mobx with jotai Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: Louis <louis@jan.ai>
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
type Props = {
|
|
title: string;
|
|
description: string;
|
|
};
|
|
|
|
export const ApiStep: React.FC<Props> = ({ description, title }) => {
|
|
return (
|
|
<div className="gap-2 flex flex-col">
|
|
<span className="text-[#8A8A8A]">{title}</span>
|
|
<div className="flex flex-col gap-[10px] p-[18px] bg-[#F9F9F9] overflow-y-hidden">
|
|
<pre className="text-sm leading-5 text-black">{description}</pre>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|