core/components/Segment.tsx
SKINMAKER b421d1ab64
chore: apply prettier (#637)
* chore: apply prettier

* chore: edit ready comment

* chore: move ts comment
2023-11-29 22:04:33 +09:00

19 lines
366 B
TypeScript

import { ReactNode } from 'react'
const Segment: React.FC<SegmentProps> = ({ children, className = '' }) => {
return (
<div
className={`rounded bg-little-white px-7 py-3 text-black dark:bg-discord-black dark:text-white ${className}`}
>
{children}
</div>
)
}
interface SegmentProps {
className?: string
children: ReactNode
}
export default Segment