File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " holosticker " : minor
3+ ---
4+
5+ Share button in the toolbar: posts to X with @jalcowastaken tagged and a link to holosticker.dev
Original file line number Diff line number Diff line change 77 History ,
88 Image ,
99 Moon ,
10+ Share2 ,
1011 Sun ,
1112} from "lucide-react"
1213import { DropdownMenu } from "radix-ui"
@@ -250,6 +251,21 @@ export default function App() {
250251 < SelectItem value = "4096" > 4096 × 4096</ SelectItem >
251252 </ SelectContent >
252253 </ Select >
254+ < Button
255+ variant = "outline"
256+ onClick = { ( ) => {
257+ const text =
258+ "Just made a holographic sticker with Holosticker ✨ by @jalcowastaken"
259+ window . open (
260+ `https://x.com/intent/post?text=${ encodeURIComponent ( text ) } &url=${ encodeURIComponent ( "https://holosticker.dev" ) } ` ,
261+ "_blank" ,
262+ "noopener" ,
263+ )
264+ } }
265+ >
266+ < Share2 aria-hidden />
267+ Share
268+ </ Button >
253269 < DropdownMenu . Root >
254270 < DropdownMenu . Trigger asChild >
255271 < Button disabled = { ! image || exporting } >
You can’t perform that action at this time.
0 commit comments