Tells you which Attio platform your client code is running inside.
"web-app"
"mobile-app"
import {platform, TextBlock} from "attio/client"
function WelcomeBlock() {
switch (platform) {
case "web-app": {
return <TextBlock>Welcome to the web app! 🌍</TextBlock>
}
case "mobile-app": {
return <TextBlock>Welcome to the mobile app! 📱</TextBlock>
}
}
}
Was this page helpful?