core/components/Segment.tsx
2021-02-12 11:36:22 +09:00

15 lines
346 B
TypeScript

const Segment = ({ children, className='' }:SegmentProps): JSX.Element => {
return (
<div className={`py-3 px-7 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm ${className}`}>
{children}
</div>
)
}
interface SegmentProps {
className?: string
children: JSX.Element | JSX.Element[]
}
export default Segment