generated from flexlark/app-template
Initial commit
This commit is contained in:
9
packages/ui/src/SwitchRouterButton.tsx
Normal file
9
packages/ui/src/SwitchRouterButton.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Anchor, Button } from 'tamagui'
|
||||
|
||||
export const SwitchRouterButton = ({ pagesMode = false }: { pagesMode?: boolean }) => {
|
||||
return (
|
||||
<Anchor text="center" color="$color12" href={pagesMode ? '/' : '/pages-example'}>
|
||||
<Button>Change router: {pagesMode ? 'pages' : 'app'}</Button>
|
||||
</Anchor>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user