mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-18 05:29:33 +02:00
24 lines
483 B
TypeScript
24 lines
483 B
TypeScript
import { Divider } from '@mui/material';
|
|
import React from 'react';
|
|
|
|
type SeparatorProps = {
|
|
backgroundColor: string;
|
|
margin: string;
|
|
};
|
|
|
|
export default function Separator({ backgroundColor, margin }: SeparatorProps) {
|
|
return (
|
|
<Divider
|
|
orientation="horizontal"
|
|
variant="fullWidth"
|
|
className="my-4"
|
|
sx={{
|
|
backgroundColor: backgroundColor,
|
|
height: '2px',
|
|
marginTop: margin,
|
|
marginBottom: margin
|
|
}}
|
|
/>
|
|
);
|
|
}
|