2023-07-22 13:14:27 +03:00
|
|
|
import { XStack, YStack } from "tamagui";
|
2023-07-21 16:25:30 +03:00
|
|
|
import { SubTitle } from "./Title";
|
|
|
|
import { Title } from "./SubTitle";
|
2023-07-22 13:14:27 +03:00
|
|
|
import { IconButton } from "../IconButton";
|
2023-07-21 16:25:30 +03:00
|
|
|
|
|
|
|
const Titles = ({ title, subtitle }) => {
|
|
|
|
return (
|
|
|
|
<YStack>
|
2023-07-22 13:14:27 +03:00
|
|
|
<XStack justifyContent="space-between">
|
|
|
|
<Title color={"#09101C"}>{title}</Title>
|
|
|
|
<IconButton
|
|
|
|
style={{
|
|
|
|
backgroundColor: "transparent",
|
|
|
|
border: "1px solid #DCE0E5",
|
|
|
|
}}
|
|
|
|
color={"#09101C"}
|
|
|
|
size={"$3"}
|
|
|
|
icon={"/icons/reveal.png"}
|
|
|
|
text={"Advanced Settings"}
|
|
|
|
/>
|
|
|
|
</XStack>
|
2023-07-21 16:25:30 +03:00
|
|
|
<SubTitle color={"#09101C"}>{subtitle}</SubTitle>
|
|
|
|
</YStack>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export { Titles };
|