mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 22:10:24 +00:00
types: added segment props
This commit is contained in:
parent
1d3fdefa17
commit
2f008e60e7
@ -1,4 +1,4 @@
|
||||
const Segment = ({ children }): JSX.Element => {
|
||||
const Segment = ({ children }:SegmentProps): JSX.Element => {
|
||||
return (
|
||||
<div className='p-5 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm'>
|
||||
{children}
|
||||
@ -6,4 +6,8 @@ const Segment = ({ children }): JSX.Element => {
|
||||
)
|
||||
}
|
||||
|
||||
interface SegmentProps {
|
||||
children: JSX.Element | JSX.Element[]
|
||||
}
|
||||
|
||||
export default Segment
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user