import { useState } from 'react' import { Typography } from '@scandic-hotels/design-system/Typography' import { ThemeSwitcher } from './ThemeSwitcher' import { ContentPage } from './ContentPage' import styles from './main.module.css' import { HotelPage } from './HotelPage' export function Main() { const [theme, setTheme] = useState('scandic') const pathname = window.location.pathname return ( <>
{ setTheme(key.toString()) }} />
{/* poor mans routing */} {pathname === '/content-page' && } {pathname === '/hotel-page' && } {pathname === '/' && ( <>

Examples

Select a page

)}
) }