mars-v2-frontend/src/components/Divider.tsx
Linkie Link d5f3232b7a
feat: connected borrowModal to the new components (#190)
* feat: connected borrowModal to the new components

* fix: fixed the introduced issues

* Update src/components/Modals/BorrowModal.tsx

as suggested

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-11 12:23:08 +02:00

14 lines
401 B
TypeScript

import classNames from 'classnames'
interface Props {
orientation?: 'horizontal' | 'vertical'
className?: string
}
export default function Divider(props: Props) {
if (props.orientation === 'vertical') {
return <div className={classNames('h-full w-[1px] bg-white/10', props.className)}></div>
}
return <div className={classNames('h-[1px] w-full bg-white/10', props.className)}></div>
}