mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## App Router Moves the `with-mux-video` example to idiomatic App Router, with goodies like * server component data fetching * server actions * layouts * route groups * loading UI ## Mux Dependencies * @mux/mux-node 7 -> 8 * @mux/mux-player-react 1 -> 2 * @mux/upchunk + custom UI -> @mux/mux-uploader ## In other news... * Fleshed out the README * Updated imagery * Moved from styled jsx to tailwind and lightly updated styles ## Contributor Checklist * [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md * [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md --------- Co-authored-by: Sam Ko <[email protected]>
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
"use client";
|
|
|
|
import { type ComponentPropsWithoutRef } from "react";
|
|
|
|
import LibMuxUploader from "@mux/mux-uploader-react";
|
|
|
|
type Props = {
|
|
endpoint: ComponentPropsWithoutRef<typeof LibMuxUploader>["endpoint"];
|
|
onSuccess: () => void;
|
|
};
|
|
export default function MuxUploader({ endpoint, onSuccess }: Props) {
|
|
return <LibMuxUploader endpoint={endpoint} onSuccess={() => onSuccess()} />;
|
|
}
|