REFACTOR frontend
This commit is contained in:
21
frontend/src/components/Selector.tsx
Normal file
21
frontend/src/components/Selector.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
type props = {
|
||||
children: React.ReactNode;
|
||||
label: String;
|
||||
}
|
||||
|
||||
const Selector = ({children, label}: props) => {
|
||||
return (
|
||||
<div className={"flex items-center gap-2"}>
|
||||
<label
|
||||
className={"w-full"}>
|
||||
{ label }
|
||||
</label>
|
||||
<div className="w-px h-6 bg-gray-400 mx-3" />
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Selector;
|
||||
Reference in New Issue
Block a user