Ligonier Code Challenge.
This commit is contained in:
commit
86fa02eec9
21 changed files with 4912 additions and 0 deletions
14
app/ligonier/control_bar.tsx
Normal file
14
app/ligonier/control_bar.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { useState } from 'react';
|
||||
|
||||
export function ControlBar({ isGallery, handleClick }) {
|
||||
return(
|
||||
<div className="hidden md:flex ml-auto">
|
||||
<button className="hover:bg-[#839b39] bg-[#789031] text-white p-2 rounded-lg mr-20 xl:mr-50 min-w-[130px]"
|
||||
onClick={handleClick}
|
||||
>
|
||||
{isGallery ? 'List' : 'Gallery'} View
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue