Hector Dearman | 3d26fdb | 2018-07-09 13:54:06 +0100 | [diff] [blame^] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
Micha Schwab | 01b3568 | 2018-06-28 13:56:49 +0100 | [diff] [blame] | 14 | |
| 15 | import * as m from 'mithril'; |
Hector Dearman | 44869b1 | 2018-07-09 09:54:31 +0100 | [diff] [blame] | 16 | import {TrackShell} from './track_shell'; |
Micha Schwab | 01b3568 | 2018-06-28 13:56:49 +0100 | [diff] [blame] | 17 | |
Hector Dearman | 44869b1 | 2018-07-09 09:54:31 +0100 | [diff] [blame] | 18 | export const Track = { |
Micha Schwab | da32244 | 2018-06-28 20:19:59 +0100 | [diff] [blame] | 19 | view({attrs}) { |
Deepanjan Roy | a752b46 | 2018-07-04 01:24:31 +0100 | [diff] [blame] | 20 | return m( |
| 21 | '.track', |
| 22 | {style: {position: 'absolute', top: 0, left: 0, width: '100%'}}, |
Hector Dearman | 44869b1 | 2018-07-09 09:54:31 +0100 | [diff] [blame] | 23 | m(TrackShell, attrs)); |
Micha Schwab | 01b3568 | 2018-06-28 13:56:49 +0100 | [diff] [blame] | 24 | } |
Hector Dearman | 44869b1 | 2018-07-09 09:54:31 +0100 | [diff] [blame] | 25 | } as m.Component<{name: string}>; |