Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 44x 276x 276x 552x | import { Stack } from "@mui/material";
import GivePill from "@shared/Tabs/GivePill";
import { useAppTheme } from "@theme/v2/Provider";
import { Dispatch, SetStateAction } from "react";
export enum ImageModalTabs {
IMAGE = "Image",
VIDEO = "Video",
}
type Props = {
selectedTab: string;
setSelectedTab: Dispatch<SetStateAction<any>>;
};
const NewImageModalTabs = ({ selectedTab, setSelectedTab }: Props) => {
const { palette } = useAppTheme();
return (
<Stack
direction="row"
width="100%"
height="44px"
sx={{
border: `1px solid ${palette.border?.secondary}`,
borderRadius: "12px",
padding: "4px",
width: "fit-content",
minWidth: "100%",
justifyContent: "space-around",
flex: 1,
}}
>
{[ImageModalTabs.IMAGE, ImageModalTabs.VIDEO].map((item, index) => {
return (
<GivePill
key={index}
value={item}
selected={selectedTab === item}
label={item}
variant="segmented"
onClick={setSelectedTab}
tabSx={{
flex: "1",
justifyContent: "center",
}}
/>
);
})}
</Stack>
);
};
export default NewImageModalTabs;
|