* add empty conversation model selection Signed-off-by: James <james@jan.ai> * chore: using secondary button instead of sidebar button Signed-off-by: James <james@jan.ai> --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai>
25 lines
494 B
TypeScript
25 lines
494 B
TypeScript
type Props = {
|
|
title: string;
|
|
onClick: () => void;
|
|
disabled?: boolean;
|
|
className?: string;
|
|
};
|
|
|
|
const SecondaryButton: React.FC<Props> = ({
|
|
title,
|
|
onClick,
|
|
disabled,
|
|
className,
|
|
}) => (
|
|
<button
|
|
disabled={disabled}
|
|
type="button"
|
|
onClick={onClick}
|
|
className={`rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 ${className}`}
|
|
>
|
|
{title}
|
|
</button>
|
|
);
|
|
|
|
export default SecondaryButton;
|