add question card
This commit is contained in:
@@ -2,15 +2,11 @@ import React, { FC, PropsWithChildren } from "react";
|
||||
|
||||
interface Props extends PropsWithChildren {
|
||||
bgColor?: string;
|
||||
border?: 'l' | 'r'
|
||||
}
|
||||
|
||||
export const SideBar: FC<Props> = ({ bgColor, border, children }) => {
|
||||
export const SideBar: FC<Props> = ({ bgColor, children }) => {
|
||||
return (
|
||||
<div className={`
|
||||
${border ? `border-${border}-2 ` : ''}
|
||||
border-gray-500 ${bgColor ?? ""}
|
||||
`}>
|
||||
<div className={`border-gray-500 ${bgColor ?? ""}`}>
|
||||
<div className="mx-2">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user