Grouped components into folders
This commit is contained in:
20
client/components/login/LoginModalTab.tsx
Normal file
20
client/components/login/LoginModalTab.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import clsx from 'clsx';
|
||||
import { FC } from 'react';
|
||||
|
||||
interface LoginModalTabProps extends React.ComponentPropsWithoutRef<'p'> {
|
||||
selected: boolean;
|
||||
}
|
||||
|
||||
const LoginModalTab: FC<LoginModalTabProps> = ({ selected, ...rest }) => {
|
||||
return (
|
||||
<p
|
||||
className={clsx(
|
||||
'font-semibold p-1',
|
||||
selected && 'text-violet-400 border-b-2 border-b-violet-400'
|
||||
)}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default LoginModalTab;
|
Reference in New Issue
Block a user