ConceptPortal-public/rsconcept/frontend/src/components/Common/Divider.tsx

16 lines
319 B
TypeScript
Raw Normal View History

2023-07-20 17:11:03 +03:00
interface DividerProps {
vertical?: boolean
margins?: string
}
2023-07-25 20:27:29 +03:00
function Divider({ vertical, margins = '2' }: DividerProps) {
2023-07-18 14:55:40 +03:00
return (
2023-07-20 17:11:03 +03:00
<>
{vertical && <div className={`mx-${margins} border-x-2`} />}
{!vertical && <div className={`my-${margins} border-y-2`} />}
</>
2023-07-18 14:55:40 +03:00
);
}
2023-07-25 20:27:29 +03:00
export default Divider;