mirror of
https://github.com/documenso/documenso.git
synced 2025-11-25 14:11:43 +10:00
feat: replace signup widget with carousel
This commit is contained in:
26
apps/marketing/src/components/(marketing)/thumb.tsx
Normal file
26
apps/marketing/src/components/(marketing)/thumb.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
|
||||
import { cn } from '@documenso/ui/lib/utils';
|
||||
|
||||
type PropType = {
|
||||
selected: boolean;
|
||||
index: number;
|
||||
onClick: () => void;
|
||||
label: string;
|
||||
};
|
||||
|
||||
export const Thumb: React.FC<PropType> = (props) => {
|
||||
const { selected, label, onClick } = props;
|
||||
|
||||
return (
|
||||
<button
|
||||
onClick={onClick}
|
||||
type="button"
|
||||
className={cn('text-muted-foreground border-b-2 border-transparent py-4', {
|
||||
'border-primary border-b-2 text-neutral-900': selected,
|
||||
})}
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user