add question card

This commit is contained in:
WindowsCrashed
2023-08-05 23:41:12 -03:00
parent 0d0aaf4f7b
commit eb33921b20
3 changed files with 73 additions and 11 deletions

View File

@@ -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>